Skip to content

Commit 4d7d868

Browse files
committed
Use older json_extract syntax.
1 parent 049345e commit 4d7d868

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/powersync/test/crud_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ void main() {
151151
[testId, 'INFO', 'test log']);
152152

153153
expect(
154-
await powersync
155-
.getAll("SELECT data ->> 'id' as id FROM ps_crud ORDER BY id"),
154+
await powersync.getAll(
155+
"SELECT json_extract(data, '\$.id') as id FROM ps_crud ORDER BY id"),
156156
equals([
157157
{'id': testId}
158158
]));
@@ -179,8 +179,8 @@ void main() {
179179
.get('SELECT quantity FROM assets WHERE id = ?', [testId]),
180180
equals({'quantity': bigNumber}));
181181
expect(
182-
await powersync
183-
.getAll('SELECT data ->> \'id\' as id FROM ps_crud ORDER BY id'),
182+
await powersync.getAll(
183+
"SELECT json_extract(data, '\$.id') as id FROM ps_crud ORDER BY id"),
184184
equals([
185185
{"id": testId}
186186
]));

0 commit comments

Comments
 (0)