I copied all of the content from /usr/lib/haxe3/std/php/_std/sys/db/Mysql.hx (except for the package name)
public var length(get,null) : Int;
public var nfields(get,null) : Int;
so i fixed them to work on haxe2
public var length(getLength,null) : Int;
public var nfields(getNFields,null) : Int;
then once it compiled, the resulting php files were the same except for this change.
--- a/deploy/lib/php/db/_Mysql/MysqlResultSet.class.php
+++ b/deploy/lib/php/db/_Mysql/MysqlResultSet.class.php
@@ -85,6 +85,9 @@ class php_db__Mysql_MysqlResultSet implements sys_db_ResultSet{
case "datetime":case "date":{
return Date::fromString($v);
}break;
+ case "blob":{
+ return haxe_io_Bytes::ofData($v);
+ }break;
default:{
return $v;
}break;
Should i be copying over the other php.db.* classes from haxe3 to haxe2.10 as well?
Connection.hx Object.hx ResultSet.hx
Manager.hx PDO.hx Transaction.hx