mirror of
https://github.com/apache/openjpa.git
synced 2025-02-21 17:45:51 +00:00
fix JDBC Abs query function's return type.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d090d717f4
commit
7a74bedd70
@ -34,8 +34,14 @@ class Abs
|
||||
}
|
||||
|
||||
protected Class getType(Class c) {
|
||||
if (c == Long.class || c == long.class)
|
||||
return long.class;
|
||||
Class wrap = Filters.wrap(c);
|
||||
if (wrap == Integer.class
|
||||
|| wrap == Float.class
|
||||
|| wrap == Double.class
|
||||
|| wrap == Long.class
|
||||
|| wrap == BigDecimal.class
|
||||
|| wrap == BigInteger.class)
|
||||
return Filters.unwrap(c);
|
||||
return int.class;
|
||||
}
|
||||
|
||||
|
@ -62,8 +62,7 @@ class Param
|
||||
|
||||
public void setImplicitType(Class type) {
|
||||
_type = type;
|
||||
_container = (getMetaData() == null ||
|
||||
!ImplHelper.isManagedType(type))
|
||||
_container = (getMetaData() == null || !ImplHelper.isManagedType(type))
|
||||
&& (Collection.class.isAssignableFrom(type)
|
||||
|| Map.class.isAssignableFrom(type));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user