Added support for REAL type

This commit is contained in:
Christopher Ramey 2012-08-22 15:25:52 +00:00 committed by cdramey
parent 0ef5f9b41d
commit dc6874b53d

View File

@ -115,6 +115,11 @@ public class JDBCJSON
writer.value(rs.getLong(i)); writer.value(rs.getLong(i));
break; break;
case Types.REAL:
writer.name(rsmd.getColumnName(i));
writer.value(rs.getFloat(i));
break;
case Types.DOUBLE: case Types.DOUBLE:
case Types.FLOAT: case Types.FLOAT:
writer.name(rsmd.getColumnName(i)); writer.name(rsmd.getColumnName(i));