What do you mean by "standard JDBC escapes"?  Originally DBPostgres did 
not have any getDateString() method, and the default impl of 
getDateString in DB.java returned

{ts ' ... timestamp ... '}

which caused a SQL parse error in PostgreSQL.

DBOracle already defined its own getDateString method, which wasn't 
working because the format of the date string didn't match what to_date 
expected.

-- Bill

>>do you mean that standard JDBC escapes do not work for them? If they do work
>>then you simply need to remove the getDateString() methods from adapters so
>>that they use default impl.


>>>This patches the Oracle and Postgres adapters for Torque, which were 
>>>breaking when using dates in criteria, for example
>>>
>>>criteria.add(DATE_COLUMN, new java.util.Date(), Criteria.LESS_EQUAL);
>>>


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

Reply via email to