Title: Numeric overflow in SequenceKeyGenerator

Hi,

The SequenceKeyGenerator class in org.exolag.castor.jdo.drivers throws a numeric overflow sql exception when used with Oracle and a suquence set to a really high value (which is perfectly legitimate). The reason is that in the method generateKey the author has declared a variable called 'value' as an int and next sequence is retreived into this int with a getInt(). This obviously fails when the value is too large. I worked around the problem by changing value to a long and using a getLong() to retreive the next id. Is there a patch that fixes this problem ?

Thanks,
Sunit

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to