Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC not support CHR(0)
Message
De
02/10/2003 11:02:48
 
 
À
02/10/2003 05:05:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00834136
Message ID:
00834281
Vues:
44
>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

Fabio,

Can you pass it as an expression so that it is evaluated later ?
?Sqlexec(hconnect,"SELECT 'A'+CHR(0)")
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform