mirror of https://github.com/AMT-Cheif/drift.git
Merge pull request #70 from knaeckeKami/master
use .toString() instead of casting to String in StringType
This commit is contained in:
commit
a96da09741
|
@ -42,7 +42,7 @@ class StringType extends SqlType<String> {
|
|||
const StringType();
|
||||
|
||||
@override
|
||||
String mapFromDatabaseResponse(response) => response as String;
|
||||
String mapFromDatabaseResponse(response) => response?.toString();
|
||||
|
||||
@override
|
||||
String mapToSqlConstant(String content) {
|
||||
|
|
Loading…
Reference in New Issue