From dc6874b53d4665e432558471daef9818cd928c15 Mon Sep 17 00:00:00 2001 From: Christopher Ramey Date: Wed, 22 Aug 2012 15:25:52 +0000 Subject: [PATCH] Added support for REAL type --- src/com/binarythought/jdbcjson/JDBCJSON.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/binarythought/jdbcjson/JDBCJSON.java b/src/com/binarythought/jdbcjson/JDBCJSON.java index ee6c453..c460fc1 100644 --- a/src/com/binarythought/jdbcjson/JDBCJSON.java +++ b/src/com/binarythought/jdbcjson/JDBCJSON.java @@ -115,6 +115,11 @@ public class JDBCJSON writer.value(rs.getLong(i)); break; + case Types.REAL: + writer.name(rsmd.getColumnName(i)); + writer.value(rs.getFloat(i)); + break; + case Types.DOUBLE: case Types.FLOAT: writer.name(rsmd.getColumnName(i));