Re: "Fail to convert to internal representation" Error
From: Bjorn Abelli (DoNotSpam.bjorn_abelli_at_hotmail.com)
Date: 12/18/03
- Previous message: Benji: ""Fail to convert to internal representation" Error"
- In reply to: Benji: ""Fail to convert to internal representation" Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Dec 2003 18:58:57 +0100
"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
- Previous message: Benji: ""Fail to convert to internal representation" Error"
- In reply to: Benji: ""Fail to convert to internal representation" Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]