| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: "Fail to convert to internal representation" Error
"Benji" wrote...
>   Prepared stmt = dbConn.prepareStatement(query);
>   BigDecimal b = new BigDecimal(documentID);
>   ResultSet rslt = stmt.executeQuery();
>
> ...where documentID is an "int"
It looks to me as at least one line is missing. Have you tried:
   PreparedStatement stmt = dbConn.prepareStatement(query);
   stmt.setInt(1, documentID);
   ResultSet rslt = stmt.executeQuery();
// Bjorn A Received on Thu Dec 18 2003 - 11:58:57 CST
![]()  | 
![]()  |