We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6793be commit 7151596Copy full SHA for 7151596
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "mysql-database",
3
- "version": "1.2.7",
+ "version": "1.2.8",
4
"description": "Easily modify your MySQL database data with easy functions",
5
"main": "index.js",
6
"scripts": {
structures/methods/tables.js
@@ -3,6 +3,6 @@
const errors = require('../errors/strings.js');
module.exports = async function(){
- let tables = await this.query(`show tables;`);
7
- return tables.map(m => m["Tables_in_" + this.db.pool.config.connectionConfig.database]);
+ let tables = await this.query(`SHOW TABLES;`);
+ return tables.map(m => m["Tables_in_" + this.db.pool.config.connectionConfig.database.toLowerCase()]);
8
}
0 commit comments