Skip to content

Commit 4fd11e9

Browse files
committed
fix: typo
1 parent 55baefe commit 4fd11e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/mysql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function getTableNames(
3636
): Promise<string[]> {
3737
const query = await knex.raw(`show tables from \`${databaseName}\``);
3838
const [res] = await query;
39-
if (!res) {
39+
if (!res[0]) {
4040
console.warn(`no tables in database ${databaseName}`);
4141
return [];
4242
}

0 commit comments

Comments
 (0)