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

The Reference Guide lists wrong lengths for the GRANTOR and GRANTEE columns in SYSCOLPERMS, SYSROUTINEPERMS, and SYSTABLEPERMS.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.5.1.1, 10.6.1.0
    • 10.5.3.0
    • Documentation
    • None
    • Normal

    Description

      The Reference guide says that these columns are 30 characters long but they are actually 128 characters long. See the following script output:

      ij version 10.6
      ij> connect 'jdbc:derby:memory:temp;create=true';
      ij> select c.columnname, c.columndatatype
      from sys.syscolumns c, sys.systables t
      where t.tableid = c.referenceid
      and t.tablename = 'SYSCOLPERMS'
      and c.columnname like 'GRANT%'
      ;
      COLUMNNAME |COLUMNDATATYPE
      ------------------------------------------------------------------------------------------------------------------------------------------------
      GRANTEE |VARCHAR(128) N&
      GRANTOR |VARCHAR(128) N&

      2 rows selected
      ij> select c.columnname, c.columndatatype
      from sys.syscolumns c, sys.systables t
      where t.tableid = c.referenceid
      and t.tablename = 'SYSROUTINEPERMS'
      and c.columnname like 'GRANT%'
      ;
      COLUMNNAME |COLUMNDATATYPE
      ------------------------------------------------------------------------------------------------------------------------------------------------
      GRANTEE |VARCHAR(128) N&
      GRANTOPTION |CHAR(1) NOT NU&
      GRANTOR |VARCHAR(128) N&

      3 rows selected
      ij> select c.columnname, c.columndatatype
      from sys.syscolumns c, sys.systables t
      where t.tableid = c.referenceid
      and t.tablename = 'SYSTABLEPERMS'
      and c.columnname like 'GRANT%'
      ;
      COLUMNNAME |COLUMNDATATYPE
      ------------------------------------------------------------------------------------------------------------------------------------------------
      GRANTEE |VARCHAR(128) N&
      GRANTOR |VARCHAR(128) N&

      2 rows selected

      Attachments

        1. derby-4324-01-aa-fixLengths.diff
          3 kB
          Richard N. Hillegas

        Activity

          People

            rhillegas Richard N. Hillegas
            rhillegas Richard N. Hillegas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: