diff --git a/modules/quercus/src/com/caucho/quercus/lib/db/JdbcResultResource.java b/modules/quercus/src/com/caucho/quercus/lib/db/JdbcResultResource.java index 487d80d..6fc9350 100644 --- a/modules/quercus/src/com/caucho/quercus/lib/db/JdbcResultResource.java +++ b/modules/quercus/src/com/caucho/quercus/lib/db/JdbcResultResource.java @@ -484,7 +484,7 @@ public class JdbcResultResource { if (rs.wasNull()) return NullValue.NULL; else - return _env.createString(String.valueOf(value)); + return new LongValue(value); } case Types.REAL: case Types.DOUBLE: @@ -494,11 +494,13 @@ public class JdbcResultResource { if (rs.wasNull()) return NullValue.NULL; else { - StringValue sb = _env.createUnicodeBuilder(); if (metaData.isCurrency(column)) { - sb.append("$"); + StringValue sb = _env.createUnicodeBuilder(); + return sb.append("$").append(value); + } + else { + return new DoubleValue(value); } - return sb.append(value); } }