mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 01:29:19 +02:00
* Case insensitive table name for firebird
git-svn-id: trunk@29122 -
This commit is contained in:
parent
411e798495
commit
a441768941
@ -642,7 +642,7 @@ begin
|
|||||||
ssFirebird:
|
ssFirebird:
|
||||||
begin
|
begin
|
||||||
// This only works with Firebird 2+
|
// This only works with Firebird 2+
|
||||||
FConnection.ExecuteDirect('execute block as begin if (exists (select 1 from rdb$relations where rdb$relation_name=''' + ATableName + ''')) '+
|
FConnection.ExecuteDirect('execute block as begin if (exists (select 1 from rdb$relations where upper(rdb$relation_name)=''' + UpperCase(ATableName) + ''')) '+
|
||||||
'then execute statement ''drop table ' + ATableName + ';'';end');
|
'then execute statement ''drop table ' + ATableName + ';'';end');
|
||||||
FTransaction.CommitRetaining;
|
FTransaction.CommitRetaining;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user