Skip to content

Commit c17d34a

Browse files
committed
Fix duplicate clickhouse
1 parent 86f6e2a commit c17d34a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { SQLDialectClickHouse } from "./dialects/SQLDialectClickHouse";
77
import { SQLDialectGeneric } from "./dialects/SQLDialectGeneric";
88
import { SQLDialectMySQL } from "./dialects/SQLDialectMySQL";
99
import { SQLDialectPostgres } from "./dialects/SQLDialectPostgres";
10+
import { SQLDialectSQLite } from "./dialects/SQLDialectSQLite";
1011

1112
t.test("It ignores invalid queries", async () => {
1213
isNotSqlInjection("SELECT * FROM users WHERE id = 'users\\'", "users\\");
@@ -324,7 +325,7 @@ function isSqlInjection(
324325
new SQLDialectGeneric(),
325326
new SQLDialectMySQL(),
326327
new SQLDialectPostgres(),
327-
new SQLDialectClickHouse(),
328+
new SQLDialectSQLite(),
328329
new SQLDialectClickHouse(),
329330
]
330331
) {
@@ -348,7 +349,7 @@ function isNotSqlInjection(
348349
new SQLDialectGeneric(),
349350
new SQLDialectMySQL(),
350351
new SQLDialectPostgres(),
351-
new SQLDialectClickHouse(),
352+
new SQLDialectSQLite(),
352353
new SQLDialectClickHouse(),
353354
]
354355
) {

0 commit comments

Comments
 (0)