This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new 99a4cae7 EMPIREDB-444 ValueUtils: convertToData fix
99a4cae7 is described below
commit 99a4cae76bf4212e00979560ed8a6442b3174dad
Author: Rainer Döbele <[email protected]>
AuthorDate: Mon Dec 30 22:02:03 2024 +0100
EMPIREDB-444
ValueUtils: convertToData fix
---
empire-db/src/main/java/org/apache/empire/commons/ValueUtils.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/empire-db/src/main/java/org/apache/empire/commons/ValueUtils.java
b/empire-db/src/main/java/org/apache/empire/commons/ValueUtils.java
index 999a982c..fafb45bc 100644
--- a/empire-db/src/main/java/org/apache/empire/commons/ValueUtils.java
+++ b/empire-db/src/main/java/org/apache/empire/commons/ValueUtils.java
@@ -747,11 +747,11 @@ public class ValueUtils
throw new ValueConversionException(Date.class, value, e);
}
case INTEGER:
- return (value instanceof Number) ? value : toLong(value);
+ return (value instanceof Integer) ? value : toLong(value);
case FLOAT:
- return (value instanceof Number) ? value : toDouble(value);
+ return toDouble(value);
case DECIMAL:
- return (value instanceof Number) ? value : toDecimal(value);
+ return toDecimal(value);
case CHAR:
case CLOB:
case VARCHAR: