Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8044

JDBC persistence-store should use BIGINT type for IDs in database tables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR12
    • 7.1.0.DR9
    • ActiveMQ
    • None

      Artemis creates file table with ID of type INT [1]. This may not be enough from long term POV.

      Suggestion for improvement: Use BIGINT type.

      [1]

      createFileTableSQL = "CREATE TABLE " + tableName +
          "(ID INT AUTO_INCREMENT, FILENAME VARCHAR(255), EXTENSION VARCHAR(10), DATA BLOB, PRIMARY KEY(ID))";
      

      Customer impact: In production It may happen that ID number exceeds the maximum of type INT what will lead to inability of Artemis to work properly.

              fnigro Francesco Nigro
              eduda_jira Erich Duda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: