|
@@ -124,7 +124,7 @@ private class MysqlResultSet implements ResultSet {
|
|
|
return _fieldsDesc;
|
|
|
}
|
|
|
|
|
|
- private function convert(v : String, type : String) : Dynamic {
|
|
|
+ private function convert(v : Dynamic, type : String) : Dynamic {
|
|
|
if (v == null) return v;
|
|
|
switch(type) {
|
|
|
case "int", "year":
|
|
@@ -133,6 +133,8 @@ private class MysqlResultSet implements ResultSet {
|
|
|
return untyped __call__("floatval", v);
|
|
|
case "datetime", "date":
|
|
|
return Date.fromString(v);
|
|
|
+ case "blob":
|
|
|
+ return haxe.io.Bytes.ofData(v);
|
|
|
default:
|
|
|
return v;
|
|
|
}
|