From 01db5e2afcaf206782307c4d307389c4b54d1428 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Wed, 3 Jul 2019 20:04:09 +0200 Subject: [PATCH] Release moor version 1.5.1, sqlparser 0.1.1 --- moor/CHANGELOG.md | 4 +++- moor/pubspec.yaml | 4 ++-- moor_flutter/lib/moor_flutter.dart | 2 +- moor_flutter/pubspec.lock | 2 +- sqlparser/CHANGELOG.md | 9 +++++++++ sqlparser/pubspec.yaml | 2 +- 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/moor/CHANGELOG.md b/moor/CHANGELOG.md index 40c45a5e..85c15982 100644 --- a/moor/CHANGELOG.md +++ b/moor/CHANGELOG.md @@ -1,5 +1,7 @@ ## 1.5.1 -- Fixed an issue where streams would behave inconsistently when transformed. +- Fixed an issue where transformed streams would not always update +- Emit a `INSERT INTO table DEFAULT VALUES` when appropriate. Moor used to generate invalid sql +before. ## 1.5.0 This version introduces some new concepts and features, which are explained in more detail below. diff --git a/moor/pubspec.yaml b/moor/pubspec.yaml index 6931b451..5af62950 100644 --- a/moor/pubspec.yaml +++ b/moor/pubspec.yaml @@ -1,6 +1,6 @@ name: moor description: Moor is a safe and reactive persistence library for Dart applications -version: 1.5.0 +version: 1.5.1 repository: https://github.com/simolus3/moor homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues @@ -16,7 +16,7 @@ dependencies: collection: '>= 1.0.0 <2.0.0' dev_dependencies: - moor_generator: ^1.4.0 + moor_generator: ^1.5.0 build_runner: '>=1.3.0 <2.0.0' build_test: ^0.10.8 test: ^1.6.4 diff --git a/moor_flutter/lib/moor_flutter.dart b/moor_flutter/lib/moor_flutter.dart index 4835b551..8e9d528d 100644 --- a/moor_flutter/lib/moor_flutter.dart +++ b/moor_flutter/lib/moor_flutter.dart @@ -149,7 +149,7 @@ class FlutterQueryExecutor extends _DatabaseOwner { SqlExecutor _migrationExecutor(s.Database db) { return (sql) { _log(sql); - db.execute(sql); + return db.execute(sql); }; } diff --git a/moor_flutter/pubspec.lock b/moor_flutter/pubspec.lock index c8cda09a..3c113fae 100644 --- a/moor_flutter/pubspec.lock +++ b/moor_flutter/pubspec.lock @@ -59,7 +59,7 @@ packages: path: "../moor" relative: true source: path - version: "1.4.0+1" + version: "1.5.1" path: dependency: "direct main" description: diff --git a/sqlparser/CHANGELOG.md b/sqlparser/CHANGELOG.md index 08708509..bc1df226 100644 --- a/sqlparser/CHANGELOG.md +++ b/sqlparser/CHANGELOG.md @@ -1,3 +1,12 @@ +## 0.1.1 +Attempt to recognize when a bound variable should be an array (eg. in `WHERE x IN ?`). +Also fixes a number of parsing bugs: +- Parses tuples, proper type resolution for `IN` expressions +- Don't resolve references to tables that don't appear in the surrounding statement. +- Parse joins without any additional operator, e.g. `table1 JOIN table2` instead of +`table1 CROSS JOIN table2`. +- Parser now complains when parsing a query doesn't fully consume the input + ## 0.1.0 Initial version, can parse most statements but not `DELETE`, common table expressions and other advanced features. \ No newline at end of file diff --git a/sqlparser/pubspec.yaml b/sqlparser/pubspec.yaml index 7f0714f6..c934c2f9 100644 --- a/sqlparser/pubspec.yaml +++ b/sqlparser/pubspec.yaml @@ -1,6 +1,6 @@ name: sqlparser description: Parses sqlite statements and performs static analysis on them -version: 0.1.0 +version: 0.1.1 homepage: https://github.com/simolus3/moor/tree/develop/sqlparser #homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues