2 messages in com.mysql.lists.plusplusRE: backslash about MySQL++/Microsoft...
FromSent OnAttachments
Joerg Geistmann02 May 2002 01:49 
Darin Buck02 May 2002 03:39 
Subject:RE: backslash about MySQL++/Microsoft Visual C++ 6.0
From:Darin Buck (dbu@guarded.net)
Date:05/02/2002 03:39:56 AM
List:com.mysql.lists.plusplus

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