|
@@ -190,6 +190,8 @@ private class TypeStrategy {
|
|
|
return untyped __call__("floatval", v);
|
|
|
case "date":
|
|
|
return Date.fromString(v);
|
|
|
+ case "blob":
|
|
|
+ return haxe.io.Bytes.ofString(v);
|
|
|
default:
|
|
|
return v;
|
|
|
}
|
|
@@ -216,10 +218,12 @@ private class PHPNativeStrategy extends TypeStrategy {
|
|
|
return "float";
|
|
|
case "date", "datetime":
|
|
|
return "date";
|
|
|
- case "bool":
|
|
|
+ case "bool", "tinyint(1)", "tiny":
|
|
|
return "bool";
|
|
|
case "int", "int24", "int32", "long", "longlong", "short":
|
|
|
return "int";
|
|
|
+ case "blob":
|
|
|
+ return "blob";
|
|
|
default:
|
|
|
return "string";
|
|
|
}
|
|
@@ -403,4 +407,4 @@ private class PDOResultSet extends BaseResultSet {
|
|
|
return v;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|