Issue #3212: Introduce TDBConnection.QuotedDbAndTableName(), callable with a db and table string. Internally calls TDBObject.QuotedDbAndTableName(), so we get the schema between db and table if required.

This commit is contained in:
Ansgar Becker
2013-06-22 04:45:53 +00:00
parent 9b7393ee56
commit 6371ff5557
4 changed files with 27 additions and 6 deletions

View File

@ -620,8 +620,7 @@ begin
FileInfo := ListFiles.GetNodeData(Node);
FileSize := _GetFileSize(FileInfo.Filename);
FileReadDone := False;
sql := 'INSERT INTO '+FConnection.QuoteIdent(comboDBs.Text)+'.'+FConnection.QuoteIdent(comboTables.Text) +
' (';
sql := 'INSERT INTO '+FConnection.QuotedDbAndTableName(comboDBs.Text, comboTables.Text) + ' (';
ColNode := ListColumns.GetFirst;
while Assigned(ColNode) do begin
ColInfo := ListColumns.GetNodeData(ColNode);