Skip to content

Commit 40276c6

Browse files
committed
Add comment
1 parent cec583c commit 40276c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/vulnerabilities/sql-injection/detectSQLInjection.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { SQLDialectSQLite } from "./dialects/SQLDialectSQLite";
1212
t.test("It ignores invalid queries", async () => {
1313
isTokenizeError("SELECT * FROM users WHERE id = 'users\\'", "users\\", [
1414
new SQLDialectMySQL(),
15+
// Postgres and others treat the backslash as a normal character
1516
]);
1617
});
1718

0 commit comments

Comments
 (0)