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:
Pinaki Poddar 2009-08-28 00:53:50 +00:00
parent 6305be480b
commit 12015d3f1d
1 changed files with 2 additions and 2 deletions

View File

@ -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)