mirror of https://github.com/Fabio286/antares.git
fix: wrong schema fetching table fields and key usage
This commit is contained in:
parent
967a0aa6e3
commit
8e71f42a28
|
@ -119,12 +119,13 @@ export default {
|
|||
const table = this.getTable(index);
|
||||
|
||||
selectedFields = this.results[i].fields.map(field => field.orgName);
|
||||
const selectedSchema = this.results[i].fields[0].db;
|
||||
this.resultsCount += this.results[i].rows.length;
|
||||
|
||||
try { // Table data
|
||||
const params = {
|
||||
uid: this.connection.uid,
|
||||
schema: this.schema,
|
||||
schema: selectedSchema,
|
||||
table
|
||||
};
|
||||
|
||||
|
@ -150,7 +151,7 @@ export default {
|
|||
try { // Key usage (foreign keys)
|
||||
const params = {
|
||||
uid: this.connection.uid,
|
||||
schema: this.schema,
|
||||
schema: selectedSchema,
|
||||
table
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue