Skip to content

Commit

Permalink
Fix query to fetch primary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
cachapa committed Jan 10, 2023
1 parent 22da500 commit c948eb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.0.5
## 0.0.5+1

* Fix UPSERTs on Raspbian due to older Sqlite version

Expand Down
2 changes: 1 addition & 1 deletion lib/src/sqlite_crdt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SqliteCrdt extends TimestampedCrdt {
DatabaseExecutor executor, String table) async =>
(await executor.rawQuery('''
SELECT name FROM pragma_table_info("$table")
WHERE pk = 1
WHERE pk > 0
''')).map((e) => e['name'] as String);

static Future<Hlc?> _lastModified(DatabaseExecutor db,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sqlite_crdt
description: Dart implementation of Conflict-free Replicated Data Types (CRDTs) using Sqlite as storage
version: 0.0.5
version: 0.0.5+1
homepage: https://github.com/cachapa/sqlite_crdt
repository: https://github.com/cachapa/sqlite_crdt
issue_tracker: https://github.com/cachapa/sqlite_crdt/issues
Expand Down

0 comments on commit c948eb3

Please sign in to comment.