Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error empty date with MariaDB
Message
From
08/11/2021 04:23:51
 
 
To
08/11/2021 03:41:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01682648
Message ID:
01682649
Views:
80
This message has been marked as the solution to the initial question of the thread.
>I am using MariaDB 3.1 ODBC connector, and get the following error:
>
>pdDate = {}
>SQLEXEC(nHandl, "Update Users set Changed = ?pdDate")
>&& Error message: Incorrect date value: '' for column users.ChangeD.
>
>
>The same works in MySQL without problems. Also when I change the code it would work, but I don't feel comfortable with this solution:
>
>pdDate = 0
>SQLEXEC(nHandl, "Update Users set Changed = ?pdDate")
>
>
>Also the following works:
>
>pdDate = DATE()
>SQLEXEC(nHandl, "Update Users set Changed = ?pdDate")
>
>
>Is this a problem with the ODBC driver or some setting I could look at?

Maybe https://mariadb.com/kb/en/how-to-define-a-date-in-order-to-import-an-empty-date-from-a-csv-file/ ?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform