Avoid a trigraph warning in the SqlBind unit test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3c6411c16e
commit
cfdb3cbf57
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user