Merge pull request #70 from knaeckeKami/master

use .toString() instead of casting to String in StringType
This commit is contained in:
Simon Binder 2019-07-09 13:31:48 +02:00 committed by GitHub
commit a96da09741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {