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 b411f488 Revert "EMPIREDB-444"
b411f488 is described below
commit b411f488c76e93d2a36207bf6f42e7cc710e61ac
Author: Rainer Döbele <[email protected]>
AuthorDate: Tue Dec 31 09:57:31 2024 +0100
Revert "EMPIREDB-444"
This reverts commit 99a4cae76bf4212e00979560ed8a6442b3174dad.
---
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 fafb45bc..999a982c 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 Integer) ? value : toLong(value);
+ return (value instanceof Number) ? value : toLong(value);
case FLOAT:
- return toDouble(value);
+ return (value instanceof Number) ? value : toDouble(value);
case DECIMAL:
- return toDecimal(value);
+ return (value instanceof Number) ? value : toDecimal(value);
case CHAR:
case CLOB:
case VARCHAR: