Updating a statement to return the string value for conforming to CustomStringConvertible for new database types

This commit is contained in:
Ryan 2018-12-16 13:58:07 -05:00
parent aaf2e00774
commit e89694e24b
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ open class StORM : StORMMirror {
case is [String:Any]?.Type:
return try! (v as! [String:Any]).jsonEncodedString()
default:
return v
// Here we will support new database types by returning what we need conforming to CustomStringConvertable.
return String(describing: v)
}
}