diff --git a/plugins/dbgate-plugin-oracle/src/backend/driver.js b/plugins/dbgate-plugin-oracle/src/backend/driver.js index a49c3333..941eb67a 100644 --- a/plugins/dbgate-plugin-oracle/src/backend/driver.js +++ b/plugins/dbgate-plugin-oracle/src/backend/driver.js @@ -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);