phpbar.de logo

Mailinglisten-Archive

backslash about MySQL++/Microsoft Visual C++ 6.0 (2)

backslash about MySQL++/Microsoft Visual C++ 6.0 (2)

Joerg Geistmann mysql-de_(at)_lists.bttr.org
Thu, 2 May 2002 14:58:53 +0200


hello again!

sorry, i know that i must use dopple backslash in c++ ;-)
my problem is really to get backslash in database about
mysql++/vc (1.7.1)
also i try

> Query << "insert into blafasel values ('1', 'c:\\mysql\\test', '0')";

i doesn´t work!

a hint?

if i do it manual about the console and i use ' in values
it doesnt work too! if i use " it works !!!
any idea?

_(at)_Darin:
> Use the API function mysql_escape_string to prepare the value for
insertion.
how can i use it? for the complette string or only for the backslash
character?

thanks,
jörg


>
> 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
>
>
>
>
>
>
> ---------------------------------------------------------------------
> Please check
"http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail win32-thread8782_(at)_lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail win32-unsubscribe_(at)_lists.mysql.com instead.

---
Infos zur Mailingliste, zur Teilnahme und zum An- und Abmelden unter
-->>  http://www.4t2.com/mysql 



php::bar PHP Wiki   -   Listenarchive