Type numeric mapping wrong

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for PostgreSQL in Delphi and C++Builder
Post Reply
Claudio
Posts: 25
Joined: Tue 17 Mar 2009 12:47

Type numeric mapping wrong

Post by Claudio » Mon 06 Jul 2009 14:09

dbexppgsql.dll = 1.0.0.4
DELPHI 7
ENABLE BCD = TRUE

--------------------------------
select cast(0 as numeric) as tpnumeric; <----- mapping (FLOAT)

select cast(0 as numeric(10,2)) as tpnumeric; <----- mapping (FMTBCD)

----------------------------

is this a BUG ?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 12 Aug 2009 09:07

This is designed behaviour. But in the next build of the driver we will change this behaviour to use TFMTBCDField for numeric fieds without precision.

Post Reply