Skip to content

Commit d381b56

Browse files
committed
fix SQLite syntax error
1 parent 971b140 commit d381b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class SQLiteDatabaseClient {
3232
return this.query(`SELECT name FROM sqlite_master WHERE type = 'table'`);
3333
}
3434
async describeColumns({table} = {}) {
35-
const rows = await this.query(`SELECT name, type, notnull FROM pragma_table_info(?) ORDER BY cid`, [table]);
35+
const rows = await this.query(`SELECT name, type, "notnull" FROM pragma_table_info(?) ORDER BY cid`, [table]);
3636
if (!rows.length) throw new Error(`table not found: ${table}`);
3737
return rows.map(({name, type, notnull}) => ({name, type: sqliteType(type), databaseType: type, nullable: !notnull}));
3838
}

0 commit comments

Comments
 (0)