Re: "Fail to convert to internal representation" Error

From: Bjorn Abelli (DoNotSpam.bjorn_abelli_at_hotmail.com)
Date: 12/18/03

  • Next message: Charles Fineman: "Driver that supports FoxPro meta data?"
    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


  • Next message: Charles Fineman: "Driver that supports FoxPro meta data?"