Use the API function mysql_escape_string to prepare the value for insertion.
-Darin
-----Original Message-----
From: Joerg Geistmann [mailto:jg...@ratio.de]
Sent: Thursday, May 02, 2002 4:50 AM
To: Mysql-De; MySQL Win32; MySQL Plusplus
Cc: Lazy Fox
Subject: backslash about MySQL++/Microsoft Visual C++ 6.0
hello there? :-)
in which way can i handle backslashes in mysql++/vc?
if i make a insert command like:
Query << "insert into blafasel values ('1', 'c:\mysql\test', '0')";
in c++
i get no backslash in db!
if i do it manual about the console it works and i have a
backslash in the db!
somebody any idea?
thanks,
jörg