DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15745>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15745

Criteria's support for Date type does not work

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Major                       |Blocker



------- Additional Comments From [EMAIL PROTECTED]  2003-01-07 21:56 -------
I am adding more details to hopefully help debug the problem. First of all,
we are using Oracle DB and Oracle's 2.0 thin driver (classes12.zip)


It appears that the problem has to do with the fact that the Criteria class
would return a null (for whatever reason), and in SqlExpression's line 278 where
the NullPonterException takes place 

            else if (criteria instanceof Date)
            {
                Date dt = (Date) criteria;
                criteria = db.getDateString(dt);
            }

db variable is null, thus the exception.

I am also changing the severity of the bug to Blocker since
I cannot come up with a work around without resorting to direct JDBC call -- 
one of the primary key.


column is also a date type, so simple update would not work either.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to