Skip to content

Commit 08e93ca

Browse files
committed
Fixed a bug in SQLiteDatabase#query(). (Fixes #4)
1 parent 47ca114 commit 08e93ca

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [0.4.3] - 2019-03-13
10-
### Added
10+
### Changed
11+
- Fixed a bug in `SQLiteDatabase#query()`
12+
([#4](https://github.com/drydart/flutter_sqlcipher/issues/4))
1113

1214
## [0.4.2] - 2019-03-13
1315
### Changed

lib/src/database.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ abstract class SQLiteDatabase implements SQLiteClosable {
429429
'groupBy': groupBy,
430430
'having': having,
431431
'orderBy': orderBy,
432-
'limit': limit.toString(),
432+
'limit': limit?.toString(),
433433
};
434434
final List<dynamic> result = await _channel.invokeMethod('query', request);
435435
assert(result.length == 2);

0 commit comments

Comments
 (0)