Hi,
what is the proper way to bind string to LIKE statement? For some reason i
get no results:
I can bind int's just fine (not with LIKE though).

std::string qry = "SELECT name "
                      " FROM Person "
                      " WHERE name LIKE ? ";

sqlite3_prepare_v2 (...)

sqlite3_bind_text(stmt, 1, qry.c_str(), -1, 0);

I need to use injection because the names may include ' characters....

How to get this to work?

Regards



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-bind-parameters-to-LIKE-with-sqlite3-bind-text-tp73237.html
Sent from the SQLite mailing list archive at Nabble.com.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to