mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
JS: Improve pg model
This commit is contained in:
@@ -23,8 +23,12 @@
|
||||
| mysqlImport.js:3:18:5:1 | {\\n s ... = ?',\\n} |
|
||||
| postgres1.js:37:21:37:24 | text |
|
||||
| postgres2.js:30:16:30:41 | 'SELECT ... number' |
|
||||
| postgres2.js:43:15:43:26 | 'SELECT 123' |
|
||||
| postgres2.js:46:15:46:47 | new Cur ... users') |
|
||||
| postgres2.js:46:26:46:46 | 'SELECT ... users' |
|
||||
| postgres3.js:15:16:15:40 | 'SELECT ... s name' |
|
||||
| postgres5.js:8:21:8:25 | query |
|
||||
| postgres-types.ts:4:18:4:29 | 'SELECT 123' |
|
||||
| postgresImport.js:4:18:4:43 | 'SELECT ... number' |
|
||||
| sequelize2.js:10:17:10:118 | 'SELECT ... Y name' |
|
||||
| sequelize.js:8:17:8:118 | 'SELECT ... Y name' |
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Client } from "pg";
|
||||
|
||||
function submitSomething(client: Client) {
|
||||
client.query('SELECT 123');
|
||||
}
|
||||
@@ -38,3 +38,9 @@ pool.connect(function(err, client, done) {
|
||||
//output: 1
|
||||
});
|
||||
});
|
||||
|
||||
let client2 = await pool.connect();
|
||||
client2.query('SELECT 123');
|
||||
|
||||
const Cursor = require('pg-cursor');
|
||||
client2.query(new Cursor('SELECT * from users'));
|
||||
|
||||
Reference in New Issue
Block a user