Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wirekang committed Sep 9, 2022
1 parent 55baefe commit 4fd11e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/mysql.ts
Expand Up @@ -36,7 +36,7 @@ async function getTableNames(
): Promise<string[]> {
const query = await knex.raw(`show tables from \`${databaseName}\``);
const [res] = await query;
if (!res) {
if (!res[0]) {
console.warn(`no tables in database ${databaseName}`);
return [];
}
Expand Down

0 comments on commit 4fd11e9

Please sign in to comment.