Hi,
sorry, that was a typo. The bind actually looks like this:

sqlite3_bind_text(stmt, 1, search.c_str(), -1, SQLITE_STATIC);

The string is guaranteed to live long. What else is wrong with this, why
will it not match anything?

Do i need to use the % symbols? 

E.g. If the DB contasin value "The Johnson's" and i search for "son's" it
will not match anything :(



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-bind-parameters-to-LIKE-with-sqlite3-bind-text-tp73237p73274.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