File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2.4.1+1
4
+
5
+ - Fix error when passing ` allowReuse: null ` into ` query() ` [ #8 ] ( https://github.com/isoos/postgresql-dart/pull/8 )
6
+
3
7
## 2.4.1
4
8
5
9
- Support for type ` interval ` , [ #10 ] ( https://github.com/isoos/postgresql-dart/pull/10 ) .
Original file line number Diff line number Diff line change @@ -416,13 +416,13 @@ abstract class _PostgreSQLExecutionContextMixin
416
416
Future <PostgreSQLResult > query (
417
417
String fmtString, {
418
418
Map <String , dynamic >? substitutionValues,
419
- bool ? allowReuse = true ,
419
+ bool ? allowReuse,
420
420
int ? timeoutInSeconds,
421
421
}) =>
422
422
_query (
423
423
fmtString,
424
424
substitutionValues: substitutionValues,
425
- allowReuse: allowReuse! ,
425
+ allowReuse: allowReuse ?? true ,
426
426
timeoutInSeconds: timeoutInSeconds,
427
427
);
428
428
@@ -467,12 +467,12 @@ abstract class _PostgreSQLExecutionContextMixin
467
467
Future <List <Map <String , Map <String , dynamic >>>> mappedResultsQuery (
468
468
String fmtString,
469
469
{Map <String , dynamic >? substitutionValues = const {},
470
- bool ? allowReuse = false ,
470
+ bool ? allowReuse,
471
471
int ? timeoutInSeconds}) async {
472
472
final rs = await query (
473
473
fmtString,
474
474
substitutionValues: substitutionValues,
475
- allowReuse: allowReuse! ,
475
+ allowReuse: allowReuse ?? false ,
476
476
timeoutInSeconds: timeoutInSeconds,
477
477
);
478
478
Original file line number Diff line number Diff line change 1
1
name : postgres
2
2
description : PostgreSQL database driver. Supports statement reuse and binary protocol.
3
- version : 2.4.1
3
+ version : 2.4.1+1
4
4
homepage : https://github.com/isoos/postgresql-dart
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments