Results 1 to 2 of 2

Thread: jdbc results

  1. #1
    Join Date
    Jan 2003
    Posts
    3

    Unhappy Unanswered: jdbc results

    Hi, somebody please help me!

    I have a database, and I am using a new version of Java, and hence have the JDBC-ODBC bridge. I have recognised the limitations of the bridge, and have implemented this code:

    -------------------------------------------------------------
    while (count < lengthOfArray) {
    tempDouble = array[count];
    System.out.print(" Inserting.."+tempDouble);
    sqlStatement = ("INSERT INTO Weighting_Data "+
    "VALUES ("+tempDouble+")");
    stmt.executeUpdate(sqlStatement);
    count++;
    }
    --------------------------------------------------------------

    It does kind of work, as it randomly puts the right and wrong value in. Is this the sort of reliability I can expect from crap drivers? If so, what are my alternatives, otherwise, what should I do?

    Thanks,

    Adam

  2. #2
    Join Date
    Jan 2003
    Posts
    3
    Also, the variable tempDouble is always populated...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •