mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
Fixed - error listing databases from Azure SQL SERVER #1197
This commit is contained in:
@@ -148,7 +148,13 @@ const driver = {
|
||||
}
|
||||
return res;
|
||||
},
|
||||
|
||||
async listDatabases(dbhan) {
|
||||
const { rows } = await this.query(dbhan, 'SELECT name FROM sys.databases order by name');
|
||||
return rows;
|
||||
},
|
||||
|
||||
async listDatabasesFull(dbhan) {
|
||||
const { rows } = await this.query(dbhan, sql.listDatabases);
|
||||
return rows;
|
||||
},
|
||||
@@ -171,7 +177,7 @@ const driver = {
|
||||
const [variables, processes, databases] = await Promise.all([
|
||||
this.listVariables(dbhan),
|
||||
this.listProcesses(dbhan),
|
||||
this.listDatabases(dbhan),
|
||||
this.listDatabasesFull(dbhan),
|
||||
]);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user