Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with VFP + mySQL5 + datetime
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01120299
Message ID:
01120902
Views:
16
My "option" parameter (in connectstring) contain value 131072 (check MySQL ODBC parameters)

MartinJ

>if mySQL table has a blank datetime value, VFP remote view doesn't understand and generates an conflict update error.
>Otherwise, if column has a null value VFP (can be a default value) VFP R.V. can save datetime info without a problem.
>
>This trick just works with remote views in SQL Pass Through isn't necessary.
>
>Weird, no ?
>
>
>>Hello.
>>I must to update some info in a mySQL5 dataBase from third-party software.
>>I have a remote view updating a table in particular where is a DATETIME column.
>>
>>the code is:
>>
>>Replace myRemoteView.myDate WITH DATETIME ( )
>>
>>When I do the TABLEUPDATE (.T.) It gives me the follow error message:
>>
>>1585
>>Update conflict in cursor ...
>>
>>
>>Only with DATETIME column this happens, with the others columns of a any type it's works fine.
>>
>>Already I have tried all SET DATE combinations.
>>
>>It works perfectly well using SQL Pass Through.
>>
>>Thanks in advance.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform