Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty Datetime from MySQL and VFP table -- Mismatch
Message
De
27/06/2005 15:42:09
 
 
À
25/06/2005 05:55:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
MySQL
Divers
Thread ID:
01026419
Message ID:
01026846
Vues:
16
Marcia, Thanks for your reply.

I am not sure if the problem is due to format the data is stored in these datetime fields in FoxPro and/or MySQL. However, after I retrieve the data from MySQL (using SQLEXEC()), these fields are not NULL. (In fact, none of the fields in my FoxPro table can accept NULL values.) So, the data in these fields is empty (and not NULL). Therefore, even the code with NVL() returns .F.
?NVL( SQLResult.ProcDT, {} ) = NVL( iol_act.ProcDT, {} )  
.F. 
*
* TTOC still returns .T. 
?TTOC(NVL( SQLResult.ProcDT, {} )) = TTOC(NVL( iol_act.ProcDT, {} ))
.T.
At present, I am using TTOC() to convert DateTime field before comparision, and it seems to be working with empty as well as not empty datetime values.
- Ravi Taxali
Visual FoxPro Made Simple An excellent book for beginners as well as experienced programmers
Never Forget Again. Setup Email Reminders.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform