We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5dd31 commit d7f1e19Copy full SHA for d7f1e19
javascript/ql/test/library-tests/frameworks/SQL/sqlite.js
@@ -1,7 +1,6 @@
1
import sqlite3 from 'sqlite3'
2
import { open } from 'sqlite'
3
4
-const unsafe = "unsafe"
5
open({
6
filename: 'database.sqlite',
7
driver: sqlite3.Database
@@ -12,7 +11,7 @@ open({
12
11
db.all('SELECT name,id FROM table1 WHERE id > 5' + " OR id = 1").then(results => {
13
console.log(results)
14
})
15
- db.run('INSERT INTO table1 (name,id) VALUES (' + `"${unsafe}"` + ',100)').then(results => {
+ db.run('SELECT name,id FROM table1 WHERE id > 5').then(results => {
16
17
18
db.prepare('SELECT name,id FROM table1 WHERE id > 5'
0 commit comments