Skip to content

Commit 4ea8aca

Browse files
committed
Fix issue with deleting $local bucket on reconnect.
1 parent e88da1a commit 4ea8aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/powersync_core/lib/src/bucket_storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BucketStorage {
3333

3434
Future<List<BucketState>> getBucketStates() async {
3535
final rows = await select(
36-
'SELECT name as bucket, cast(last_op as TEXT) as op_id FROM ps_buckets WHERE pending_delete = 0');
36+
'SELECT name as bucket, cast(last_op as TEXT) as op_id FROM ps_buckets WHERE pending_delete = 0 AND name != \'\$local\'');
3737
return [
3838
for (var row in rows)
3939
BucketState(bucket: row['bucket'], opId: row['op_id'])

0 commit comments

Comments
 (0)