Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1660

SYSCS_BULK_INSERT fails with syntax error at PROPERTIES clause.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • SQL
    • None

    Description

      Calling procedure SYSCS_BULK_INSERT fails in 10.2 , throwing a syntax error when it sees the PROPERTIES clause.
      SystemProcedures.SYSCS_BULK_INSERT uses the following sql query.
      String binsertSql =
      "insert into " + entityName +
      " PROPERTIES insertMode=bulkInsert " +
      "select * from new " + vtiName +
      "(" +
      "'" + schemaName + "'" + ", " +
      "'" + tableName + "'" + ", " +
      "'" + vtiArg + "'" + ")" +
      " as t";
      I think because of the optimizer overrides in 10.2, this query does not work.

      Instead of the PROPERTIES clause, we should now use --DERBY-PROPERTIES.

      Attachments

        1. bulkinsert.diff.txt
          0.6 kB
          Sunitha Kambhampati
        2. bulkinsert.test.diff.txt
          45 kB
          Sunitha Kambhampati
        3. bulkinsert.test.stat.txt
          0.5 kB
          Sunitha Kambhampati

        Activity

          People

            skambha Sunitha Kambhampati
            skambha Sunitha Kambhampati
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: