Author: shawkins
Date: 2009-09-18 09:31:57 -0400 (Fri, 18 Sep 2009)
New Revision: 1368
Modified:
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/translator/Translator.java
Log:
TEIID-689: using valueof methods for value retrieval
Modified:
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/translator/Translator.java
===================================================================
---
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/translator/Translator.java 2009-09-17
21:14:49 UTC (rev 1367)
+++
trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/translator/Translator.java 2009-09-18
13:31:57 UTC (rev 1368)
@@ -566,7 +566,7 @@
if(results.wasNull()) {
return null;
}
- return new Double(value);
+ return Double.valueOf(value);
}
case BIGDECIMAL_CODE: {
return results.getBigDecimal(columnIndex);
@@ -583,7 +583,7 @@
if(results.wasNull()) {
return null;
}
- return new Float(value);
+ return Float.valueOf(value);
}
case TIME_CODE: {
return results.getTime(columnIndex, getDatabaseCalendar());
Show replies by date