fix: **Use query instead of execute always**

- mysql2 typeCast doesn´t work on prepared statements
This commit is contained in:
dunak-debug committed 2021-09-17 18:06:03 +02:00
1 parent 290e23c190
commit 878a2eb6c0
3 files changed
+6 -9

No files matched your search

-3
View File
@@ -1,8 +1,5 @@
import { pool } from './pool';
import { execute } from './execute';
import { format } from 'mysql2';
import { parseParameters } from './parser';
setImmediate(async () => {
try {
await (await pool.getConnection()).ping();