Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC and empty date
Message
De
08/01/2008 14:25:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ODBC and empty date
Divers
Thread ID:
01280300
Message ID:
01280300
Vues:
77
We're using a remote connection to a VFP database. When doing an INSERT with an empty date field I get a data mis-match error.
? SQLPREPARE(myHandle, "insert into xyz (effect_dt) values (?m.datevar )")---> 1
m.datevar=DATE()
? SQLEXEC(myHandle) ----> 1
m.datevar={}
? SQLEXEC(myHandle) ----> -1
=AERROR(laError)
? laError[2] ----> "Connectivity error: [Microsoft][ODBC Visual FoxPro Driver]Data type mismatch"
A straight SQL Insert
INSERT INTO xyz (effect_dt) VALUES ( {} )
works just fine.

Any insight will be greatly appreciated.

TIA to all.........Rich
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform