Loading wrong data type in the table

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
gleickson
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 12.02.2015, 18:20

Loading wrong data type in the table

Post by gleickson »

Dear friends .. I am reading a Firebird database with the Zeos components .. but in ZTable component, numerc fields (15.2) are being loaded as TIntegerField. Very strange, since when do the same thing with DBExpress components kinds of fields is correct . I'm using Delphi 7 and Zeos 7.1.4 stable.
(Sorry for my bad english rs)

thank you!
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Loading wrong data type in the table

Post by marsupilami »

Hello gleickson,

which version of Firebird do you use? Can you try the latest 7.1-version from SVN? You can check it out or export it from svn://svn.code.sf.net/p/zeoslib/code-0/branches/7.1-patches.

In my test environment (Delphi 7, Zeos-7.1-patches from SVN, Firebird 2.5.1) the following table

Code: Select all

create table test (
  id integer not null,
  testfield numeric(15,2)
)
loads as expected with id being a TIntegerField and testfield being a TFloatField.

With best regards,

Jan
neodarkman
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 28.04.2015, 19:04

Re: Loading wrong data type in the table

Post by neodarkman »

Hi ...
I'm having a similar problem.
In a sqlite3 database have several columns of type REAL.
Some, Zeos, returns as the TStringField type, other TFloatField.
Must all be returned as TFloatField.

Zeos: 7.1.4
FPC: 2.6.4
Lazarus: 1.2.6

thanks
Post Reply