Skip to content

Commit

Permalink
Fix duplicate clickhouse
Browse files Browse the repository at this point in the history
hansott committed Jan 25, 2025
1 parent 86f6e2a commit c17d34a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ import { SQLDialectClickHouse } from "./dialects/SQLDialectClickHouse";
import { SQLDialectGeneric } from "./dialects/SQLDialectGeneric";
import { SQLDialectMySQL } from "./dialects/SQLDialectMySQL";
import { SQLDialectPostgres } from "./dialects/SQLDialectPostgres";
import { SQLDialectSQLite } from "./dialects/SQLDialectSQLite";

t.test("It ignores invalid queries", async () => {
isNotSqlInjection("SELECT * FROM users WHERE id = 'users\\'", "users\\");
@@ -324,7 +325,7 @@ function isSqlInjection(
new SQLDialectGeneric(),
new SQLDialectMySQL(),
new SQLDialectPostgres(),
new SQLDialectClickHouse(),
new SQLDialectSQLite(),
new SQLDialectClickHouse(),
]
) {
@@ -348,7 +349,7 @@ function isNotSqlInjection(
new SQLDialectGeneric(),
new SQLDialectMySQL(),
new SQLDialectPostgres(),
new SQLDialectClickHouse(),
new SQLDialectSQLite(),
new SQLDialectClickHouse(),
]
) {

0 comments on commit c17d34a

Please sign in to comment.