File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/drift_sqlite_async Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.2.2
2
+
3
+ - Fix write detection when using UPDATE/INSERT/DELETE with RETURNING in raw queries.
4
+
1
5
## 0.2.1
2
6
3
7
- Fix lints.
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ import 'package:sqlite_async/sqlite_async.dart';
8
8
// Ends with " RETURNING *", or starts with insert/update/delete.
9
9
// Drift-generated queries will always have the RETURNING *.
10
10
// The INSERT/UPDATE/DELETE check is for custom queries, and is not exhaustive.
11
- final _returningCheck = RegExp (r'( RETURNING \*;?$)|(^(INSERT|UPDATE|DELETE))' ,
11
+ final _returningCheck = RegExp (
12
+ r'( RETURNING \*;?\s*$)|(^\s*(INSERT|UPDATE|DELETE))' ,
12
13
caseSensitive: false );
13
14
14
15
class _SqliteAsyncDelegate extends _SqliteAsyncQueryDelegate
Original file line number Diff line number Diff line change 1
1
name : drift_sqlite_async
2
- version : 0.2.1
2
+ version : 0.2.2
3
3
homepage : https://github.com/powersync-ja/sqlite_async.dart
4
4
repository : https://github.com/powersync-ja/sqlite_async.dart
5
5
description : Use Drift with a sqlite_async database, allowing both to be used in the same application.
You can’t perform that action at this time.
0 commit comments