Bug in jdbc timestamp escaping in Oracle 9i?
From: Till Kahle (kahle_at_weikatec.com)
Date: 10/05/04
- Next message: Joe Weinstein: "Re: Bug in jdbc timestamp escaping in Oracle 9i?"
- Previous message: Lionel: "Hibernate Date formating"
- Next in thread: Joe Weinstein: "Re: Bug in jdbc timestamp escaping in Oracle 9i?"
- Reply: Joe Weinstein: "Re: Bug in jdbc timestamp escaping in Oracle 9i?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 5 Oct 2004 03:55:56 -0700
Hi all,
has anybody experienced this in Oracle:
Issue a jdbc query using a timestamp like:
"select * from mytable where postDate>={ts '2004-10-05 10:00:00'}"
-> oracle 8i: everything works fine
-> oracle 9i: the query result is correct but oracle doesn't use
an index on the postDate column
The behaviour is similar to a query using the wrong constant type:
"select * from mytable where postDate>='2004-10-05 10:00:00'"
(if nls_date_format is set accordingly)
I have reproduced the problem in Oracle 9.2.0.4 with JDBC
versions 9.2.0.3 and 9.2.0.5.
Of course there are possible workarounds like bind variables
and using to_date(...) in the query, but I'd rather see
Oracle 9i JDBC translating the {ts} escapes correctly.
Is this bug fixed in later Oracle versions? Or am I
missing something fundamental about timestamp escaping?
Till
- Next message: Joe Weinstein: "Re: Bug in jdbc timestamp escaping in Oracle 9i?"
- Previous message: Lionel: "Hibernate Date formating"
- Next in thread: Joe Weinstein: "Re: Bug in jdbc timestamp escaping in Oracle 9i?"
- Reply: Joe Weinstein: "Re: Bug in jdbc timestamp escaping in Oracle 9i?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|