Bug #10910 | Access shows #Deleted for records inserted with NULL values | ||
---|---|---|---|
Submitted: | 27 May 2005 9:55 | Modified: | 23 Jan 2007 14:05 |
Reporter: | Martin King-Turner | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 3.51.11-2 | OS: | Windows (Win XP SP2) |
Assigned to: | Peter Harvey | CPU Architecture: | Any |
[27 May 2005 9:55]
Martin King-Turner
[27 May 2005 9:56]
Martin King-Turner
Sample Access database for test case
Attachment: bug.mdb (application/msaccess, text), 176.00 KiB.
[27 May 2005 13:08]
MySQL Verification Team
I tested inserting new records in several ways: directly in the linked table object. using a form with not event on before update without any problems. Actually adding that event I got the behavior reported and for this reason I am editing the bug report as verified.
[19 Jan 2007 11:22]
Bogdan Degtyariov
The bug was caused by default setting SQL_AUTO_IS_NULL=1. This had been done for compatibility reasons as older versions of MDAC and Access retrieved the new records by "SELECT * FROM `my_table` WHERE ID IS NULL;". By default MyODBC driver sends "SET SQL_AUTO_IS_NULL=0" with the initial statement, so "SELECT * FROM `my_table` WHERE ID IS NULL;" returns empty result set. In order to fix the bug we added a new option for MyODBC driver: FLAG_AUTO_IS_NULL = 8388608. When FLAG_AUTO_IS_NULL is set, the default behavior or MySQL is being restored. However, I am not aware about any programs/ODBC clients that this options is useful for.
[23 Jan 2007 14:05]
MC Brown
I've updated the documentation with this option in the list of potential parameters. A note on this change has been added to the changelog for 3.5.14.
[21 Sep 2011 10:03]
Ivo Ulrich
I am using: Access 2003 SP3 (Microsoft Jet Engine 4.0.9511.0) MySQL-Client-Version: 5.0.32 Server Version: 5.0.67 and MySQL ODBC 5.01.05.00 Driver I have the same problem when I INSERT into linked tables and specifically set a field to NULL in a bound Access Form. Can I somehow select the option FLAG_AUTO_IS_NULL = 8388608 in the Connector/ODBC connection screen? Or do I have to link the tables with my own connection string to set this option value?