소스 검색

* Case insensitive table name for firebird

git-svn-id: trunk@29122 -
michael 10 년 전
부모
커밋
a441768941
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-db/tests/sqldbtoolsunit.pas

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

@@ -642,7 +642,7 @@ begin
       ssFirebird:
         begin
         // 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');
         FTransaction.CommitRetaining;
         end;