Skip to content
Snippets Groups Projects
Commit be7b0599 authored by felmer's avatar felmer
Browse files

LMS-1364 bug fixed

SVN: 14764
parent 41b03787
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class DAO extends SimpleJdbcDaoSupport
{
return DataTypeCode.INTEGER;
}
if (JdbcUtils.isNumeric(sqlType))
if (isReal(sqlType))
{
return DataTypeCode.REAL;
}
......@@ -66,6 +66,12 @@ class DAO extends SimpleJdbcDaoSupport
return Types.BIGINT == sqlType || Types.INTEGER == sqlType || Types.SMALLINT == sqlType
|| Types.TINYINT == sqlType;
}
private static boolean isReal(int sqlType)
{
return Types.DECIMAL == sqlType || Types.DOUBLE == sqlType || Types.FLOAT == sqlType
|| Types.NUMERIC == sqlType || Types.REAL == sqlType;
}
public DAO(DataSource dataSource)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment