Fixed typo in query...

This commit is contained in:
thosakwe 2017-07-14 19:11:12 -04:00
parent 7298b4638b
commit 9aebd67393
3 changed files with 10 additions and 2 deletions

View file

@ -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 # 1.0.0-alpha+3
* Added `isIn`, `isNotIn`, `isBetween`, `isNotBetween` to `SqlExpressionBuilder` and its * Added `isIn`, `isNotIn`, `isBetween`, `isNotBetween` to `SqlExpressionBuilder` and its
subclasses. subclasses.

View file

@ -21,7 +21,7 @@ String sanitizeExpression(String unsafe) {
continue; continue;
// Otherwise, add the next char, unless it's a null byte. // 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(); return buf.toString();

View file

@ -1,5 +1,5 @@
name: angel_orm name: angel_orm
version: 1.0.0-alpha+3 version: 1.0.0-alpha+5
description: Runtime support for Angel's ORM. description: Runtime support for Angel's ORM.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/orm homepage: https://github.com/angel-dart/orm