mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	fix: wrong schema fetching table fields and key usage
This commit is contained in:
		| @@ -119,12 +119,13 @@ export default { | |||||||
|                      const table = this.getTable(index); |                      const table = this.getTable(index); | ||||||
|  |  | ||||||
|                      selectedFields = this.results[i].fields.map(field => field.orgName); |                      selectedFields = this.results[i].fields.map(field => field.orgName); | ||||||
|  |                      const selectedSchema = this.results[i].fields[0].db; | ||||||
|                      this.resultsCount += this.results[i].rows.length; |                      this.resultsCount += this.results[i].rows.length; | ||||||
|  |  | ||||||
|                      try { // Table data |                      try { // Table data | ||||||
|                         const params = { |                         const params = { | ||||||
|                            uid: this.connection.uid, |                            uid: this.connection.uid, | ||||||
|                            schema: this.schema, |                            schema: selectedSchema, | ||||||
|                            table |                            table | ||||||
|                         }; |                         }; | ||||||
|  |  | ||||||
| @@ -150,7 +151,7 @@ export default { | |||||||
|                      try { // Key usage (foreign keys) |                      try { // Key usage (foreign keys) | ||||||
|                         const params = { |                         const params = { | ||||||
|                            uid: this.connection.uid, |                            uid: this.connection.uid, | ||||||
|                            schema: this.schema, |                            schema: selectedSchema, | ||||||
|                            table |                            table | ||||||
|                         }; |                         }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user