Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What the !@@@@?
Message
From
09/02/2011 16:28:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/02/2011 17:10:43
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01499284
Message ID:
01499469
Views:
58
>Hi All,
>
>
>I have an older vfp application that accesses a MySQL database on linux and for the most part it works just fine. I wanted to show it to a potential customer of mine and so I download and install the windows version of MySQL and restored the database. When I started testing it failed on the update command something about an invalid dateformat. The table has date fields with nothing special as far as I can see and linux version doesn't have a problem with a blank date field. What am I missing here ? Do I have to write additional code to handle blanks ?

How do you build your update string? If you're using dtoc(), you may get an ambiguous format. From what I remember about MySql (didn't have the need to touch it for a year - time flies and my side project is moved to back burner of third order by now), it should accept a number of formats. Looking at my old code, I was sending dates as dtos(), surrounded by the quotation marks (the chr(95) ones, then), and it didn't complain. And, IIRC, it accepts the empty date, but for that you better check the documentation.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform