Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2011

Make table auto-creation create SERIAL columns with Postgresql when using auto-increment feature

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Obsolete
    • Icon: Optional Optional
    • No Release
    • JBossAS-4.0.2 Final, JBossAS-4.0.3 Final
    • CMP service
    • None
    • FreeBSD, JBoss 4.0.2, Postgresql

      If the auto-increment feature is enabled for Postgresql tables, the tables will not be created with the SERIAL attribute.

      A patch to fix this (against 4.0.2, 4.0.3) without invoking post-creation commands is available at:

      http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/java/jboss4/files/patch-serial-autoinc?rev=1.2&content-type=text/plain

      Basically, the patch breaks down the <auto-increment-template> from 1 substitution to 3 substitutions. This allows the field creation for serial fields in Postgresql (and Informix) to be specified in detail. The patch includes corrections for databases to use the extended format.

              Unassigned Unassigned
              jonathan.chen_jira Jonathan Chen (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified