Boolean fields
Posted: Wed 30 Jan 2013 18:46
Hello,
I have a problem with the boolean fields.
I connected a PgDataSource to a PGtable. The table linked to the PGTable contains one boolean field. I also connected the PgDataSource with the standard DBGrid shipped with Delphi.
When I open the table I have the boolean column showing True/False correctly. I can change the value by typing True/False or T/F in the DBGrid but if I type Yes/No or y/n or 0/1 or on/off I have an error message "Yes is not a valid boolean value for field xxxx".
I double checked and ran an update query from pgAdmin shipped with PosgtreSQL and all the combinations above are accepted and the value of the fields are amended accordingly.
How can I fix this in PGDac ?
Many thanks
Pio Pio
I have a problem with the boolean fields.
I connected a PgDataSource to a PGtable. The table linked to the PGTable contains one boolean field. I also connected the PgDataSource with the standard DBGrid shipped with Delphi.
When I open the table I have the boolean column showing True/False correctly. I can change the value by typing True/False or T/F in the DBGrid but if I type Yes/No or y/n or 0/1 or on/off I have an error message "Yes is not a valid boolean value for field xxxx".
I double checked and ran an update query from pgAdmin shipped with PosgtreSQL and all the combinations above are accepted and the value of the fields are amended accordingly.
How can I fix this in PGDac ?
Many thanks
Pio Pio