554 |
|
ExtractIdentifier(Database.SQLDialect, |
555 |
|
QuoteIdentifier(DataBase.SQLDialect, Name)) + |
556 |
|
''' ' + |
557 |
< |
'AND RDB$CONSTRAINT_TYPE = ''PRIMARY KEY'''; |
557 |
> |
'AND Trim(RDB$CONSTRAINT_TYPE) = ''PRIMARY KEY'''; |
558 |
|
Query.Prepare; |
559 |
|
Query.ExecQuery; |
560 |
|
if not Query.EOF then |
748 |
|
Query.Database := DataBase; |
749 |
|
Query.Transaction := Database.InternalTransaction; |
750 |
|
Query.SQL.Text := |
751 |
< |
'Select USER from RDB$RELATIONS where RDB$RELATION_NAME = ' + {do not localize} |
751 |
> |
'Select USER from RDB$RELATIONS where Trim(RDB$RELATION_NAME) = ' + {do not localize} |
752 |
|
'''' + |
753 |
|
ExtractIdentifier(Database.SQLDialect, |
754 |
|
QuoteIdentifier(DataBase.SQLDialect, FTableName)) + ''''; |
995 |
|
Query.Database := DataBase; |
996 |
|
Query.Transaction := Database.InternalTransaction; |
997 |
|
Query.SQL.Text := 'Select RDB$SYSTEM_FLAG, RDB$DBKEY_LENGTH ' + {do not localize} |
998 |
< |
'from RDB$RELATIONS where RDB$RELATION_NAME = ' + {do not localize} |
998 |
> |
'from RDB$RELATIONS where Trim(RDB$RELATION_NAME) = ' + {do not localize} |
999 |
|
'''' + |
1000 |
|
ExtractIdentifier(Database.SQLDialect, |
1001 |
|
QuoteIdentifier(DataBase.SQLDialect, FTableName)) + ''''; |