Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-3063

Drivers cannot support date format like '2018-02-15:15:28:16' for batch insertion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • client-jdbc-t4
    • None

    Description

      //table ddl

      CREATE TABLE TRAFODION.SCH.A
      (
      C1 TIMESTAMP(6) DEFAULT NULL NOT SERIALIZED
      )
      ATTRIBUTES ALIGNED FORMAT
      ;

      //code for reproducing

      Connection conn = DriverManager.getConnection(url, "trafodion", "traf123");
      PreparedStatement ps = conn.prepareStatement("insert into a VALUES ");
      ps.setObject(1,"2018-03-22:19:10:25");
      ps.addBatch();
      ps.executeBatch();
      conn.close();

       

      //Output

      java.sql.BatchUpdateException: Batch Update Failed, See next exception for details

              at org.trafodion.jdbc.t4.TrafT4PreparedStatement.executeBatch(TrafT4PreparedStatement.java:322)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kevinxu021 Kevin Xu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: