File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
library/vulnerabilities/sql-injection Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { SQLDialectClickHouse } from "./dialects/SQLDialectClickHouse";
7
7
import { SQLDialectGeneric } from "./dialects/SQLDialectGeneric" ;
8
8
import { SQLDialectMySQL } from "./dialects/SQLDialectMySQL" ;
9
9
import { SQLDialectPostgres } from "./dialects/SQLDialectPostgres" ;
10
+ import { SQLDialectSQLite } from "./dialects/SQLDialectSQLite" ;
10
11
11
12
t . test ( "It ignores invalid queries" , async ( ) => {
12
13
isNotSqlInjection ( "SELECT * FROM users WHERE id = 'users\\'" , "users\\" ) ;
@@ -324,7 +325,7 @@ function isSqlInjection(
324
325
new SQLDialectGeneric ( ) ,
325
326
new SQLDialectMySQL ( ) ,
326
327
new SQLDialectPostgres ( ) ,
327
- new SQLDialectClickHouse ( ) ,
328
+ new SQLDialectSQLite ( ) ,
328
329
new SQLDialectClickHouse ( ) ,
329
330
]
330
331
) {
@@ -348,7 +349,7 @@ function isNotSqlInjection(
348
349
new SQLDialectGeneric ( ) ,
349
350
new SQLDialectMySQL ( ) ,
350
351
new SQLDialectPostgres ( ) ,
351
- new SQLDialectClickHouse ( ) ,
352
+ new SQLDialectSQLite ( ) ,
352
353
new SQLDialectClickHouse ( ) ,
353
354
]
354
355
) {
You can’t perform that action at this time.
0 commit comments