Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7219

Improve PurgeDatabaseTest

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.7.0, 7.7.0-alpha1
    • 7.7.x
    • engine
    • None

      Use count to retrieve the number of rows of a table instead of reading all rows into memory and using List.size() / List.isEmpty().

      Background:
      The PurgeDatabaseTest failed when run against an IBM Informix database instance.
      The Informix JDBC driver handles the long varchar columns like ACT_HI_DEC_IN.TEXT_ as JDBC-type CLOB if not explitcitly specified.
      When using the generic approach (TableData) for reading data this gives an error for unknown reason. The regular access of the data through the spcific mapping (HistoricDecisionInputInstance) works fine, as here jdbcType is set to VARCHAR.
      As the testcase is just interested in the fact if there are any rows or not in the table using the "select count" is sufficient. No need to read the data.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              langfr Frank Langelage
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: