From: Warren Young Date: November 13 2008 10:36am Subject: Re: Doubt regrading uses of Mysql++ List-Archive: http://lists.mysql.com/plusplus/8135 Message-Id: <8FBD67AB-2EFE-4967-A913-D711B28AF9E8@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Nov 13, 2008, at 2:01 AM, rajdeep.shyam wrote: > So how to copy the mysql ::string to std::string? If you simply assign one to the other, it should work, though it won't work reliably with BLOB data, as it uses a C string pointer. To get a copy that can cope with embedded null characters, this should work: mysqlpp::String s1 = ... stuff std::string s2(s1.data(), s1.length()); However, I suspect your problem isn't actually in the string copy. I think something else is going on. Please post your code and the compiler error messages so we can diagnose it.