Browse Source

* Set Datasize for the unrecognized field types

git-svn-id: trunk@15503 -
blikblum 15 years ago
parent
commit
1bf2cfd5e8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/fcl-db/src/sqlite/sqlite3ds.pas

+ 5 - 1
packages/fcl-db/src/sqlite/sqlite3ds.pas

@@ -227,11 +227,15 @@ begin
         SQLITE_FLOAT:
           AType := ftFloat;
       else
-        AType := ftString;
+	    begin
+          AType := ftString;
+		  DataSize := DefaultStringSize;
+		end;  		
       end;
     end else
     begin
       AType := ftString;
+	  DataSize := DefaultStringSize;
     end;
     FieldDefs.Add(String(sqlite3_column_name(vm, i)), AType, DataSize);
     //Set the pchar2sql function