Skip to content

Commit

Permalink
fixed issue in query adapter's queryList where CompoundSelectStatemen…
Browse files Browse the repository at this point in the history
…t is not executed
  • Loading branch information
Michael Thongvanh committed Sep 19, 2023
1 parent 9967c32 commit e2982fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion floor/lib/src/adapter/query_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class QueryAdapter {
}) async {
final rootNode = _parseRootNode(sql);

if (rootNode is SelectStatement) {
if (rootNode is BaseSelectStatement) {
return _database
.rawQuery(sql, arguments)
.then((rows) => rows.map((row) => mapper(row)).toList());
Expand Down

0 comments on commit e2982fd

Please sign in to comment.