logo       

Storing BLOB using C constructs and no STL(string, streams etc): msg#00037

db.mysql.c++

Subject: Storing BLOB using C constructs and no STL(string, streams etc)

Hi,

I need help in convertin this piece of code in C strings rather than
streams and strings. can someone please help me out with the use of
escape in char*.

c_struct is a C structure with some char buffers and int values.

string fill((char*)c_struct, len);

setQ << "UPDATE Info.Paid SET InfoStruct=\""
<< mysqlpp::escape << fill << "\" WHERE ID='" << val_chk << "'" << ends;

Thanks.
Ankur

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise