On Monday, 30 March 2015 at 17:18:01 UTC, Suliman wrote:
same problem. I am preparing string to next SQL request:

string sss = format("SELECT * FROM test.imgs WHERE src LIKE CONCAT('%', REPLACE(CAST(CURDATE()as char), "-", ""), '%') OR CONCAT('%', CAST(CURDATE()as char), '%')");

Here's your code without SQL noise:

string sss = format("foo"-", ""bar");

It should be obvious now that you forgot to escape those double quotes.

Reply via email to