Bug #16258 | WITH CHECK OTION fails in MS Access | ||
---|---|---|---|
Submitted: | 6 Jan 2006 16:16 | Modified: | 24 Jul 2007 19:21 |
Reporter: | gernot adams | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51.11-2 and 3.51.12 | OS: | Windows (Windows) |
Assigned to: | CPU Architecture: | Any | |
Tags: | ODBC5-RC |
[6 Jan 2006 16:16]
gernot adams
[10 Jan 2006 11:05]
Vasily Kishkin
I was able to reproduce the bug. I was able to insert fail value from MS Access. mysql> select * from tblPatient; +-----------+------+------------+ | PatientNo | Sex | DateBirth | +-----------+------+------------+ | 345 | m | 1850-01-01 | +-----------+------+------------+ 1 row in set (0.00 sec) but from mysql client: mysql> INSERT INTO viewPatient (PatientNo, Sex, DateBirth) VALUES ("346", "f",01 011851); ERROR 1369 (HY000): CHECK OPTION failed 'test.viewpatient' I would like to notice probably you need to use "AND" instead of "OR" in "CREATE VIEW" and use RIGHT(DATE_FORMAT(CURDATE(),"%m%d"),5) instead of RIGHT(CURDATE(),5)
[24 Jul 2007 19:21]
Jim Winstead
This is not repeatable with Connector/ODBC 3.51.17 and Microsoft Access 2003 once the view definition is fixed to use 'AND' instead of 'OR'.