aspose file tools
The moose likes Object Relational Mapping and the fly likes Sql Exception: inconsistent datatypes, need help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Sql Exception: inconsistent datatypes, need help" Watch "Sql Exception: inconsistent datatypes, need help" New topic
Author

Sql Exception: inconsistent datatypes, need help

Tommi Vd
Ranch Hand

Joined: Apr 23, 2009
Posts: 49
Hi i have a problem when i want to get some date out of my oracle database:

The table is empty but normally that may not be the cause, this is the error:



This is the code that queries the database:



In my database there is a from date and a to date, both are stored as dates in the database...
the now Date is java.util

Anyone who has an idea?

regards,

Kwast
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
change "date = ?" to "date is null" and remove the extra parameter.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Sql Exception: inconsistent datatypes, need help
 
Similar Threads
Problem with LazyInitializationException
com.sun.mail.smtp.SMTPSendFailedException: 451 4.7.1 Please try again later
java.net.SocketException: Connection reset
Hibernate 3: java.sql.SQLException: Field 'passwordConfirmation' doesn't have a default value
FTP server