11 lines
246 B
JavaScript
11 lines
246 B
JavaScript
|
var pg = require('./test-helper').pg
|
||
|
|
||
|
var sql = 'SELECT 1 AS "\\\'/*", 2 AS "\\\'*/\n + process.exit(-1)] = null;\n//"'
|
||
|
|
||
|
var client = new pg.Client()
|
||
|
client.connect()
|
||
|
client.query(sql, function (err, res) {
|
||
|
if (err) throw err
|
||
|
client.end()
|
||
|
})
|