Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC not support CHR(0)
Message
De
02/10/2003 05:05:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
SQLEXEC not support CHR(0)
Divers
Thread ID:
00834136
Message ID:
00834136
Vues:
65
Hi,

if you put a CHR(0) on SPT string, VFP send to ODBC a wrong string:
?Sqlexec(hconnect,"SELECT 'A"+CHR(1)+"'")
?Sqlexec(hconnect,"SELECT 'A"+CHR(0)+"'") && <--- errore ODBC
If VFP build the string with a parameters fields ODBC haven't problem.

The problem is on VFP SPT parser, it cut the string when found a CHR(0) char
( VFP C routine use z-string on input).

Fabio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform