fix
Some checks failed
Run tests / test-runner (push) Has been cancelled

This commit is contained in:
Jan Prochazka 2024-08-30 14:31:07 +02:00
parent be0be4d0a0
commit ff8a5f1658

View File

@ -86,7 +86,7 @@ const driver = {
return pool.end();
},
async query(client, sql) {
if (sql == null) {
if (sql == null || sql.trim() == '') {
return {
rows: [],
columns: [],
@ -98,8 +98,6 @@ const driver = {
sql = mtrim[1];
}
console.log('************************ RUN ORACLE QUERY', sql);
const res = await client.execute(sql);
try {
const columns = extractOracleColumns(res.metaData);