Patch level : 10.0
Files correlati : ca3 Ricompilazione Demo : [ ] Commento : Aggiunto supporto per query su file dbf esterni git-svn-id: svn://10.65.10.50/trunk@18677 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									0f3b15d44f
								
							
						
					
					
						commit
						26e0a03c67
					
				@ -1214,8 +1214,25 @@ TCursor_parser::TCursor_parser(istream& instr, TArray& col)
 | 
				
			|||||||
  if (tok.blank())
 | 
					  if (tok.blank())
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  TString table(tok); table.upper();
 | 
				
			||||||
 | 
					  if (table.ends_with(".DBF"))
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    TFilename dbf = table;
 | 
				
			||||||
 | 
					    if (dbf.is_relative_path())
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      if (!dbf.custom_path())
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        dbf.tempdir();
 | 
				
			||||||
 | 
					        dbf.add(table);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    dbf.lower();
 | 
				
			||||||
 | 
					    TExternisamfile* eif = new TExternisamfile(dbf, true);
 | 
				
			||||||
 | 
					    _relation = new TRelation(eif);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
    int logicnum = table2logic(tok);
 | 
					    int logicnum = table2logic(tok);
 | 
				
			||||||
	const TString table(tok);
 | 
					 | 
				
			||||||
    if (logicnum == LF_MAG && tok == "MAG")  // Faccio prevalere la tabella MAG sul file MAG
 | 
					    if (logicnum == LF_MAG && tok == "MAG")  // Faccio prevalere la tabella MAG sul file MAG
 | 
				
			||||||
      logicnum = LF_TAB;
 | 
					      logicnum = LF_TAB;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1223,6 +1240,7 @@ TCursor_parser::TCursor_parser(istream& instr, TArray& col)
 | 
				
			|||||||
      _relation = new TRelation(tok);
 | 
					      _relation = new TRelation(tok);
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      _relation = new TRelation(logicnum);
 | 
					      _relation = new TRelation(logicnum);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  pop();
 | 
					  pop();
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
  add_column_info(table, _relation->curr());
 | 
					  add_column_info(table, _relation->curr());
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user