Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

How to convert std::string to SQLString in Visual Studio 2010 using Connnector/C++ 1.1.3 (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>