mirror of https://github.com/AMT-Cheif/drift.git
Fix mapping of nulls in IntType
This commit is contained in:
parent
4190c807c9
commit
0220d01a54
|
@ -85,7 +85,7 @@ class IntType extends SqlType<int> {
|
|||
|
||||
@override
|
||||
int mapFromDatabaseResponse(dynamic response) {
|
||||
if (response is int) return response;
|
||||
if (response == null || response is int /*?*/) return response as int /*?*/;
|
||||
return int.parse(response.toString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue