Page 1 of 1
PostgreSQL field type: bit discern TWideMemoField
Posted: Sat 09 Nov 2013 00:48
by Eden0928
In SQL Server, field type: bit discern TBooleanField in ADOQuery
In PostgreSQL, field type: bit discern TWideMemoField in ClientDataSet
So, I get the Error Message when write the field value in ClientDataSet.Post.
"Data rows "BIT_FIELD" type is bit, but expressions is type text."
Why?
Delphi XE5, 2009
DBX Driver version: 3.3.4
Re: PostgreSQL field type: bit discern TWideMemoField
Posted: Mon 11 Nov 2013 14:35
by AlexP
Hello,
For the time being, dbExpress doesn't support bit and bit varying types. To solve the problem, you should set the UnknownAsString option to true. We will consider the opportunity to support such types in one of the next versions.
Re: PostgreSQL field type: bit discern TWideMemoField
Posted: Mon 11 Nov 2013 16:01
by Eden0928
So, Should I change the bit type change to char(1) or varchar(1).
It's right?
Re: PostgreSQL field type: bit discern TWideMemoField
Posted: Mon 11 Nov 2013 16:43
by AlexP
Hello,
The char(1) and varchar(1) types differ from the bit type, therefore the best solution will be to use the UnknownAsString option.
Re: PostgreSQL field type: bit discern TWideMemoField
Posted: Tue 12 Nov 2013 03:12
by Eden0928
I hope can add this feature in the next version.
Because, dbexpress driver for sql server supported the bit type filed from Delphi 2009.
Re: PostgreSQL field type: bit discern TWideMemoField
Posted: Tue 12 Nov 2013 06:45
by AlexP
Hello,
This feature is in our operational plan, however, we cannot tell an exact feature implementation date.