ZupdateSQL Boolean fields
Posted: 28.12.2006, 15:22
Hello,
I'm working with Delphi 6 and the Zeos 6.6 beta.
I've got a table in Mysql 5.0 which has a view fields declared as
enum('N','Y') NOT NULL default 'N'
The Field editor makes Boolean fields from this which is good.
If I insert a row I only want to insert one field with a value all other fields should take the default or stay NULL.
-> ZupdateSQL.INSERTSQL:
INSERT INTO KUNDEN
( KUNDEN.MATCHCODE, )
VALUES
(:MATCHCODE)
I put all the boolean fields to autogenerate (default), and required to false.
If I insert a row I get an EZSQLException in the Zdbcmysqlutils Unit (procedure checkmysqlerror).
Check your syntax near " 0,0,0,0,0,0,0,0,0,0,0,0,0,"
But I only wanted to update one field, why are there that many values.
Can anybody help me.
Thanks in advance
Andreas
I'm working with Delphi 6 and the Zeos 6.6 beta.
I've got a table in Mysql 5.0 which has a view fields declared as
enum('N','Y') NOT NULL default 'N'
The Field editor makes Boolean fields from this which is good.
If I insert a row I only want to insert one field with a value all other fields should take the default or stay NULL.
-> ZupdateSQL.INSERTSQL:
INSERT INTO KUNDEN
( KUNDEN.MATCHCODE, )
VALUES
(:MATCHCODE)
I put all the boolean fields to autogenerate (default), and required to false.
If I insert a row I get an EZSQLException in the Zdbcmysqlutils Unit (procedure checkmysqlerror).
Check your syntax near " 0,0,0,0,0,0,0,0,0,0,0,0,0,"
But I only wanted to update one field, why are there that many values.
Can anybody help me.
Thanks in advance
Andreas