mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
10 lines
313 B
JavaScript
10 lines
313 B
JavaScript
const mysql = require('mysql');
|
|
const pool = mysql.createPool(getConfig());
|
|
|
|
let temp = process.env['foo']; // $ Source
|
|
pool.getConnection(function(err, connection) {
|
|
connection.query({
|
|
sql: 'SELECT * FROM `books` WHERE `author` = ' + temp, // $ Alert
|
|
}, function(error, results, fields) {});
|
|
});
|