MySQL Forums
Forum List  »  Connector/C++

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 03:31PM

I am unable to convert an std::string to SQLString which is used for most functions as parameters.

I have tried:

const string query ("select * from table_name");
SQLString query_sql(query);

-- didn't work

string query("select * from table_name");
SQLString query_sql(query);

-- didn't work

string query("select * from table_name");
SQLString query_sql(query.c_str());

-- didn't work

I am using Connector/C++ 1.1.3

Options: ReplyQuote


Subject
Views
Written By
Posted
How to convert std::string to SQLString in Visual Studio 2010 using Connnector/C++ 1.1.3
4909
June 05, 2013 03:31PM


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.