diff --git a/tests/sqlbind_test.cpp b/tests/sqlbind_test.cpp index 2336c32..d0bc8ad 100644 --- a/tests/sqlbind_test.cpp +++ b/tests/sqlbind_test.cpp @@ -96,7 +96,7 @@ int main() { CHECK(bind("where email=? and status='ACTIVE'", {bv("x' or '1'='1")}) == "where email='x\\' or \\'1\\'=\\'1' and status='ACTIVE'"); // replacement text is never rescanned - CHECK(bind("a=? and b=?", {bv("?"), bv("??")}) == "a='?' and b='??'"); + CHECK(bind("a=? and b=?", {bv("?"), bv("?" "?")}) == "a='?' and b='?" "?'"); // --- ? inside literals, identifiers and comments is never replaced --- CHECK(countPlaceholders("select '?', \"?\", `?` from t", false) == 0);