Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC not support CHR(0)
Message
From
02/10/2003 05:05:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
SQLEXEC not support CHR(0)
Miscellaneous
Thread ID:
00834136
Message ID:
00834136
Views:
67
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
Next
Reply
Map
View

Click here to load this message in the networking platform