浏览代码

Fix Spod Timestamp conversion

This fixed some PHP related Spod problems for me, i will ask franco to review this change.
frabbit 12 年之前
父节点
当前提交
dabd1e66fc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/php/_std/sys/db/Mysql.hx

+ 1 - 1
std/php/_std/sys/db/Mysql.hx

@@ -138,7 +138,7 @@ private class MysqlResultSet implements ResultSet {
 				return untyped __call__("intval", v);
 				return untyped __call__("intval", v);
 			case "real":
 			case "real":
 				return untyped __call__("floatval", v);
 				return untyped __call__("floatval", v);
-			case "datetime", "date":
+			case "datetime", "date", "timestamp":
 				return Date.fromString(v);
 				return Date.fromString(v);
 			case "blob":
 			case "blob":
 				return haxe.io.Bytes.ofData(cast v);
 				return haxe.io.Bytes.ofData(cast v);