On Mar 5, 10:54 pm, "David Crawshaw" <[EMAIL PROTECTED]> wrote:
> No, the story is more complex than that. The bug is in my example code
> on usage.html, not in the driver.

Ok, I see now. prepareStatement.setDate() does more or less the same
as setLong(). There's nothing wrong with that of course, e.g. if I do
want to store this as a long value. But since I use DATETIME I just
have to modify the SQL statement, like in your example. Thanks.

>     assert(rs.getDate(1).equals(new Date(987654321)));

This must be in milliseconds too (987654321000).
--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to