Bug #4115 | unset TIMESTAMP fields disallow modification in linked ODBC tables | ||
---|---|---|---|
Submitted: | 12 Jun 2004 2:28 | Modified: | 25 Oct 2005 14:57 |
Reporter: | Ronald Jeremy | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S1 (Critical) |
Version: | 3.51 | OS: | Windows (Windows XP) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[12 Jun 2004 2:28]
Ronald Jeremy
[18 Jun 2004 5:26]
MySQL Verification Team
Verified with Access 2003.
[11 Apr 2005 19:01]
Mark Matthews
Please attach your testcase.
[11 Apr 2005 19:07]
Ronald Jeremy
CREATE TABLE t1 (id int(1) PRIMARY KEY,val varchar(10),time1 TIMESTAMP,time2 TIMESTAMP)type=MyISAM; INSERT INTO t1 (id,val) SELECT 1,'a'; Now in MS Access, create a linked table to table t1. Open the table, try to change 'a' to 'b', and since time2 is unset, the "Write Conflict" error occurs. Now: UPDATE t1 SET time2 = null; This will set time2 to the current time. Open the linked table in MS Access once again, and you can now change 'a' to 'b' without error.
[25 Oct 2005 14:57]
Peter Harvey
Tested with c/odbc v3.51.12. I doubt there is a bug here - or at least the problem can be avoided if the following is considered; - there is no need for more than one timestamp column in a table - avoid using timestamp as a pk (not done in this case but good to keep in mind)