[CONJS-108] typescript escape/escapeId definition

This commit is contained in:
rusher
2019-11-04 09:17:59 +01:00
parent da0c9a405b
commit ba953560fa
2 changed files with 41 additions and 0 deletions

View File

@ -111,6 +111,10 @@ async function testMisc(): Promise<void> {
console.log('ended');
connection.destroy();
connection.escape('test');
connection.escape(true);
connection.escape(5);
connection.escapeId('myColumn');
await createConnection({ multipleStatements: true });
@ -167,6 +171,11 @@ async function testPool(): Promise<void> {
pool = createPool();
const connection = await pool.getConnection();
pool.escape('test');
pool.escape(true);
pool.escape(5);
pool.escapeId('myColumn');
console.log(connection.threadId != null);
await connection.query('SELECT 1 + 1 AS solution');