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";
77import { SQLDialectGeneric } from "./dialects/SQLDialectGeneric" ;
88import { SQLDialectMySQL } from "./dialects/SQLDialectMySQL" ;
99import { SQLDialectPostgres } from "./dialects/SQLDialectPostgres" ;
10+ import { SQLDialectSQLite } from "./dialects/SQLDialectSQLite" ;
1011
1112t . 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) {
You can’t perform that action at this time.
0 commit comments