This commit is contained in:
Jan Prochazka
2020-09-27 09:05:00 +02:00
parent 154a4fc7d9
commit fbd963bfb1
3 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,12 @@ const driver = {
return connection;
},
async query(connection, sql) {
if (sql == null) {
return {
rows: [],
columns: [],
};
}
return new Promise((resolve, reject) => {
connection.query(sql, function (error, results, fields) {
if (error) reject(error);