32 |
|
uses |
33 |
|
Classes, SysUtils, FileUtil, SynEdit, SynHighlighterSQL, LResources, Forms, |
34 |
|
Controls, ActnList, Menus, Dialogs, ComCtrls, ExtCtrls, StdCtrls, IBQuery, |
35 |
< |
IBSQL, IBDatabase, IBUpdate, IBDatabaseInfo, IBLookupComboEditBox, |
35 |
> |
IBSQL, IBDatabase, IBUpdate, IBDatabaseInfo, |
36 |
|
IBCustomDataset, db, LazSynTextArea, IB; |
37 |
|
|
38 |
|
type |
702 |
|
var FieldNames: TStrings; |
703 |
|
ReadOnlyFieldNames: TStrings; |
704 |
|
UpdateFields: TStrings; |
705 |
– |
i, index: integer; |
705 |
|
begin |
706 |
|
SQL.Clear; |
707 |
|
FieldNames := TStringList.Create; |
924 |
|
(not PrimaryKeys.Active or not PrimaryKeys.Locate('columnName;Selected', |
925 |
|
VarArrayOf([IdentityCols.FieldByName('ColumnName').AsString,0]),[loCaseInsensitive])) then |
926 |
|
begin |
927 |
< |
InsertSQL := InsertSQL + Separator + IdentityCols.FieldByName('ColumnName').AsString; |
927 |
> |
InsertSQL := InsertSQL + Separator + QuoteIdentifierIfNeeded(Database.SQLDialect,IdentityCols.FieldByName('ColumnName').AsString); |
928 |
|
Separator := ', '; |
929 |
|
end; |
930 |
|
IdentityCols.Next; |