mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:29:26 +02:00
* Use variable instead of hardcoded tablename
git-svn-id: trunk@12215 -
This commit is contained in:
parent
b593bf17bf
commit
2425eb4721
@ -295,7 +295,7 @@ begin
|
|||||||
try
|
try
|
||||||
if SQLDbType = INTERBASE then
|
if SQLDbType = INTERBASE then
|
||||||
begin
|
begin
|
||||||
FConnection.ExecuteDirect('execute block as begin if (exists (select 1 from rdb$relations where rdb$relation_name=''FPDEV_FIELD'')) '+
|
FConnection.ExecuteDirect('execute block as begin if (exists (select 1 from rdb$relations where rdb$relation_name=''' + 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