From 9aebd67393d67e9e68588b1428e550a66f022a5d Mon Sep 17 00:00:00 2001 From: thosakwe Date: Fri, 14 Jul 2017 19:11:12 -0400 Subject: [PATCH] Fixed typo in query... --- angel_orm/CHANGELOG.md | 8 ++++++++ angel_orm/lib/src/query.dart | 2 +- angel_orm/pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/angel_orm/CHANGELOG.md b/angel_orm/CHANGELOG.md index 82be6f00..58829678 100644 --- a/angel_orm/CHANGELOG.md +++ b/angel_orm/CHANGELOG.md @@ -1,3 +1,11 @@ +# 1.0.0-alpha+5 +* Corrected a typo that was causing the aforementioned test failures. +`==` becomes `=`. + +# 1.0.0-alpha+4 +* Added a null-check in `lib/src/query.dart#L24` to (hopefully) prevent it from +crashing on Travis. + # 1.0.0-alpha+3 * Added `isIn`, `isNotIn`, `isBetween`, `isNotBetween` to `SqlExpressionBuilder` and its subclasses. diff --git a/angel_orm/lib/src/query.dart b/angel_orm/lib/src/query.dart index 479e396e..0d461a90 100644 --- a/angel_orm/lib/src/query.dart +++ b/angel_orm/lib/src/query.dart @@ -21,7 +21,7 @@ String sanitizeExpression(String unsafe) { continue; // Otherwise, add the next char, unless it's a null byte. - else if ((ch == scanner.readChar()) != 0) buf.writeCharCode(ch); + else if ((ch = scanner.readChar()) != 0 && ch != null) buf.writeCharCode(ch); } return buf.toString(); diff --git a/angel_orm/pubspec.yaml b/angel_orm/pubspec.yaml index ff63866c..ba343391 100644 --- a/angel_orm/pubspec.yaml +++ b/angel_orm/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_orm -version: 1.0.0-alpha+3 +version: 1.0.0-alpha+5 description: Runtime support for Angel's ORM. author: Tobe O homepage: https://github.com/angel-dart/orm