use .toString() instead of casting to String in StringType

This commit is contained in:
Martin Kamleithner 2019-07-09 12:51:37 +02:00
parent 01db5e2afc
commit e7f37f5e93
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) {