Zeos 6.6.4 MySQL NULL Strings and AutoInc Fields
Posted: 05.12.2008, 07:21
Hi,
I have not migrate from ZEOSLIB_TRUNK_REV247 (it is a good year old now I think) as everytime I have migrated I have had issues with ftAutoInc fields.
I have not really had time until now to sit down and workout if it was just my applications. I have found the following:
In my applications I like to check before a post that if a field is REQUIRED I error and take the user to the field in question. Previously my code has checked if a field is a ftAutoInc and Required then skip; however is recent updates ftAutoInc fields are shown as ftLargeInt
I also noticed and error while posting string values, this comes about because if I remove my check of REQUIRED fields to allow the ftAutoInc field to post ok, I find my application allows EMPTY strings are posted into fields that are set as NOT NULL.
I have attached example application and SQL scripts.
I have not migrate from ZEOSLIB_TRUNK_REV247 (it is a good year old now I think) as everytime I have migrated I have had issues with ftAutoInc fields.
I have not really had time until now to sit down and workout if it was just my applications. I have found the following:
In my applications I like to check before a post that if a field is REQUIRED I error and take the user to the field in question. Previously my code has checked if a field is a ftAutoInc and Required then skip; however is recent updates ftAutoInc fields are shown as ftLargeInt
I also noticed and error while posting string values, this comes about because if I remove my check of REQUIRED fields to allow the ftAutoInc field to post ok, I find my application allows EMPTY strings are posted into fields that are set as NOT NULL.
I have attached example application and SQL scripts.