Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behaviour
Message
From
23/09/2003 02:32:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Strange behaviour
Miscellaneous
Thread ID:
00831337
Message ID:
00831337
Views:
39
Hello, everyone,

I have a problem with MySQL, using a SPT. Maybe one could help me here?
SELECT MAX(tData) AS tField FROM table1
     WHERE uId LIKE 'parameter'
I use this SPT to download the records from both MySQL and MSSQL Server. The problem appears when in the backend table are no matching records.

MSSQL Server returns a cursor with 0 records, MySQL returns a cursor with 1 record, containing { / / : : }.

ISNULL(tField) return .F., EMPTY(tField) returns .F.!!! That thingie is not empty, is not null, is not equal with itself! What the heck?

The same SQL Command, executed in native MySQL environment, returns NULL. So, I suspect that is a ODBC problem.

Anyone knows why this is happening and what to do to avoid it?

Many thanks.
Grigore Dolghin
Class Software.
Next
Reply
Map
View

Click here to load this message in the networking platform