mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
This commit is contained in:
parent
be0be4d0a0
commit
ff8a5f1658
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user