PRB: 'Incorrect time value' error when updating or inserting TIME columns with MySQL ODBC driver
Saturday, 29 November 2008
You could receive the following error - [MySQL][ODBC 5.1 Driver][mysqld-5.0.51a-community-nt-log]Incorrect
time value: '11:12:34''11:12:3' for column at row 1, when you are using smartDBforms.NET with MySQL and ODBC driver and you edit
or create a new record, which contains columns
of type TIME
SYMPTOMS
You could receive the following error - [MySQL][ODBC 5.1 Driver][mysqld-5.0.51a-community-nt-log]Incorrect
time value: '11:12:34''11:12:3' for column at row 1, when you are using smartDBforms.NET with MySQL and ODBC driver and you edit
or create a new record, which contains columns
of type TIME
CAUSE
MySQL ODBC driver fails to properly convert the provided .NET TimeSpan value to
the native MySQL TIME value.
RESOLUTION
The problem
has been fixed in MySQL ODBC driver version 5.1.5. This problem
is related to the following MySQL ODBC driver bug - ODBC TIMESTAMP string format not handled properly by ODBC driver.
APPLIES TO
- smartDBforms.NET 2.2 and later( MySQL is not supported
in the previous
versions ).
- MySQL with MySQL ODBC Driver
|