mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 15:47:51 +02:00
* Added recognition of FLOAT, CHAR and DECIMAL fields/records
git-svn-id: trunk@9092 -
This commit is contained in:
parent
306670c74a
commit
570b4e079d
@ -307,7 +307,7 @@ Type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
Const
|
Const
|
||||||
FieldMapCount = 15;
|
FieldMapCount = 18;
|
||||||
FieldMap : Array [1..FieldMapCount] of TFieldMap = (
|
FieldMap : Array [1..FieldMapCount] of TFieldMap = (
|
||||||
(n:'INT'; t: ftInteger),
|
(n:'INT'; t: ftInteger),
|
||||||
(n:'LARGEINT'; t:ftlargeInt),
|
(n:'LARGEINT'; t:ftlargeInt),
|
||||||
@ -315,13 +315,16 @@ Const
|
|||||||
(n:'SMALLINT'; t: ftSmallint),
|
(n:'SMALLINT'; t: ftSmallint),
|
||||||
(n:'BOOLEAN'; t: ftBoolean),
|
(n:'BOOLEAN'; t: ftBoolean),
|
||||||
(n:'REAL'; t: ftFloat),
|
(n:'REAL'; t: ftFloat),
|
||||||
|
(n:'FLOAT'; t: ftFloat),
|
||||||
(n:'DOUBLE'; t: ftFloat),
|
(n:'DOUBLE'; t: ftFloat),
|
||||||
(n:'DATETIME'; t: ftDateTime), // MUST be before date
|
(n:'DATETIME'; t: ftDateTime), // MUST be before date
|
||||||
(n:'DATE'; t: ftDate),
|
(n:'DATE'; t: ftDate),
|
||||||
(n:'TIME'; t: ftTime),
|
(n:'TIME'; t: ftTime),
|
||||||
(n:'CURRENCY'; t: ftCurrency),
|
(n:'CURRENCY'; t: ftCurrency),
|
||||||
(n:'VARCHAR'; t: ftString),
|
(n:'VARCHAR'; t: ftString),
|
||||||
|
(n:'CHAR'; t: ftString),
|
||||||
(n:'NUMERIC'; t: ftBCD),
|
(n:'NUMERIC'; t: ftBCD),
|
||||||
|
(n:'DECIMAL'; t: ftBCD),
|
||||||
(n:'TEXT'; t: ftmemo),
|
(n:'TEXT'; t: ftmemo),
|
||||||
(n:'BLOB'; t: ftBlob)
|
(n:'BLOB'; t: ftBlob)
|
||||||
{ Template:
|
{ Template:
|
||||||
|
Loading…
Reference in New Issue
Block a user