mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: adapt query for SQLite dialect in DB class
This commit is contained in:
@@ -139,7 +139,10 @@ export class DB {
|
||||
params
|
||||
);
|
||||
} else if (this.uri.dialect === 'sqlite') {
|
||||
return (this.db as Database<any>).run(query, params);
|
||||
return (this.db as Database<any>).run(
|
||||
adaptQuery(query, this.uri.dialect),
|
||||
params
|
||||
);
|
||||
}
|
||||
throw new Error('Unsupported dialect');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user