Sfoglia il codice sorgente

* Use variable instead of hardcoded tablename

git-svn-id: trunk@12215 -
joost 17 anni fa
parent
commit
2425eb4721
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/fcl-db/tests/sqldbtoolsunit.pas

+ 1 - 1
packages/fcl-db/tests/sqldbtoolsunit.pas

@@ -295,7 +295,7 @@ begin
   try
     if SQLDbType = INTERBASE then
       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');
       FTransaction.CommitRetaining;
       end;