mirror of https://github.com/AMT-Cheif/drift.git
Fix insertReturning not updating streams
* test case not possible due to sqlite version
This commit is contained in:
parent
61cb03ad35
commit
bc2aaee2f3
|
@ -87,6 +87,8 @@ class InsertStatement<T extends Table, D> {
|
|||
|
||||
return database.doWhenOpened((e) async {
|
||||
final result = await e.runSelect(ctx.sql, ctx.boundVariables);
|
||||
database
|
||||
.notifyUpdates({TableUpdate.onTable(table, kind: UpdateKind.insert)});
|
||||
return table.map(result.single);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue