Browse Source

* Added recognition of FLOAT, CHAR and DECIMAL fields/records

git-svn-id: trunk@9092 -
joost 18 years ago
parent
commit
570b4e079d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp

+ 4 - 1
packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp

@@ -307,7 +307,7 @@ Type
   end;
   
 Const
-  FieldMapCount = 15;
+  FieldMapCount = 18;
   FieldMap : Array [1..FieldMapCount] of TFieldMap = (
    (n:'INT'; t: ftInteger),
    (n:'LARGEINT'; t:ftlargeInt),
@@ -315,13 +315,16 @@ Const
    (n:'SMALLINT'; t: ftSmallint),
    (n:'BOOLEAN'; t: ftBoolean),
    (n:'REAL'; t: ftFloat),
+   (n:'FLOAT'; t: ftFloat),
    (n:'DOUBLE'; t: ftFloat),
    (n:'DATETIME'; t: ftDateTime), // MUST be before date
    (n:'DATE'; t: ftDate),
    (n:'TIME'; t: ftTime),
    (n:'CURRENCY'; t: ftCurrency),
    (n:'VARCHAR'; t: ftString),
+   (n:'CHAR'; t: ftString),
    (n:'NUMERIC'; t: ftBCD),
+   (n:'DECIMAL'; t: ftBCD),
    (n:'TEXT'; t: ftmemo),
    (n:'BLOB'; t: ftBlob)
 { Template: