fix: wrong schema fetching table fields and key usage

This commit is contained in:
Fabio286 2020-09-10 12:39:23 +02:00
parent 967a0aa6e3
commit 8e71f42a28
1 changed files with 3 additions and 2 deletions

View File

@ -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
};