Subject | Re: JayBird and large attachment |
---|---|
Author | doychin@dsoft-bg.com |
Post date | 2003-12-17T10:56:46Z |
this is the fix we did to eliminate this excpetion:
Index: FBBigDecimalField.java
===================================================================
RCS file: /cvsroot/firebird/client-
java/src/main/org/firebirdsql/jdbc/Attic/FBBigDecimalField.java,v
retrieving revision 1.7
diff -r1.7 FBBigDecimalField.java
110c110,111
< return getBigDecimal().longValue();
---
Index: FBBigDecimalField.java
===================================================================
RCS file: /cvsroot/firebird/client-
java/src/main/org/firebirdsql/jdbc/Attic/FBBigDecimalField.java,v
retrieving revision 1.7
diff -r1.7 FBBigDecimalField.java
110c110,111
< return getBigDecimal().longValue();
---
> BigDecimal bigDecimal = getBigDecimal();Doychin
> return (bigDecimal != null ? bigDecimal.longValue(): 0);