mirror of https://github.com/apache/openjpa.git
getLong was using INT. Patch by Criag Russell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808701 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6305be480b
commit
12015d3f1d
|
@ -661,8 +661,8 @@ public abstract class AbstractResult
|
|||
protected long getLongInternal(Object obj, Joins joins)
|
||||
throws SQLException {
|
||||
Number val = (Number) checkNull(getObjectInternal(obj,
|
||||
JavaTypes.INT, null, joins));
|
||||
return (val == null) ? 0 : val.intValue();
|
||||
JavaTypes.LONG, null, joins));
|
||||
return (val == null) ? 0 : val.longValue();
|
||||
}
|
||||
|
||||
public Number getNumber(Object obj)
|
||||
|
|
Loading…
Reference in New Issue