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 da082cf  EMPIREDB-351 fix
da082cf is described below

commit da082cf5f3cb51fcd0c74c7fb4ad60699e584b23
Author: Rainer Döbele <[email protected]>
AuthorDate: Fri May 21 12:49:28 2021 +0200

    EMPIREDB-351
    fix
---
 empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java 
b/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
index 12382a2..810b1b3 100644
--- a/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
+++ b/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
@@ -742,6 +742,8 @@ public final class ObjectUtils
             return c.cast(getLong(v));
         if(c.isAssignableFrom(Double.class))
                return c.cast(getDouble(v));
+        if(c.isAssignableFrom(BigDecimal.class))
+            return c.cast(getDecimal(v));
         if (c.isAssignableFrom(String.class))
             return c.cast(v.toString());
         // other

Reply via email to