瀏覽代碼

* patch from Lacak2, use dbconst for errormessage, mantis #0018161

git-svn-id: trunk@16602 -
marco 15 年之前
父節點
當前提交
cd4425aa58
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/fcl-db/src/sqldb/interbase/ibconnection.pp

+ 2 - 2
packages/fcl-db/src/sqldb/interbase/ibconnection.pp

@@ -121,7 +121,7 @@ type
 implementation
 
 uses
-  strutils, typinfo;
+  strutils;
 
 type
   TTm = packed record
@@ -954,7 +954,7 @@ begin
         else
           begin
             result := false;
-            databaseerror('Field type '+getenumname(typeinfo(tfieldtype),ord(FieldDef.DataType))+' not supported.');
+            databaseerrorfmt(SUnsupportedFieldType, [Fieldtypenames[FieldDef.DataType], Self]);
           end
       end;  { case }
       end; { if/else }