MySQL Forums
Forum List  »  Connector/C++

Re: How to convert std::string to SQLString in Visual Studio 2010 using Connnector/C++ 1.1.3
Posted by: Debjit Ghosh
Date: June 05, 2013 04:44PM

Figured one way out:

string query = "asdf";
SQLString query_sql = query.c_str();

Don't EVER try converting std::string to SQLString - the constructor is dysfunctional.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to convert std::string to SQLString in Visual Studio 2010 using Connnector/C++ 1.1.3
6297
June 05, 2013 04:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.