tags:

views:

61

answers:

1

It seems that this part of my code is where the exception occurs:

c = dbConnection.getConnection(); 
q = "SELECT * FROM book WHERE nextInc<=? AND inlib=?";
s = c.prepareStatement(q); 
s.setBigDecimal(1,BigDecimal.valueOf(curDate.getTime())); 
s.setBoolean(2,false); 
rs = s.executeQuery(); <-- Error.

I'm using "sun.jdbc.odbc.JdbcOdbcDriver".

+1  A: 

As per this, the error could occur because of non-existent column.

Could you put the structure of the table here?

shahkalpesh
I feel like an idiot, I mistyped the column name. Thanks for the help.
Dean