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

Unreserve COUNT keyword, if possible.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.0.2.0, 10.1.1.0, 10.2.1.6
    • 10.1.2.1, 10.2.1.6
    • SQL
    • None
    • All Platforms

    Description

      Derby currently treats COUNT as a reserved word. This prevents having COUNT as a table name or a column name as shown below. It would be good to move COUNT from reserved word to a non-reserved word list. Having COUNT as a reserved word also causes problems while porting applications to Derby.

      ij> create table count(i int);
      ERROR 42X01: Syntax error: Encountered "count" at line 1, column 14.
      ij> create table ts(count int);
      ERROR 42X01: Syntax error: Encountered "count" at line 1, column 17.

      Note that SQL standard says COUNT is a reserved word, but Derby treats several of these reserved words as non-reserved words already. (CLOB for example)

      Attachments

        1. count.patch
          5 kB
          Satheesh E. Bandaram

        Activity

          People

            Unassigned Unassigned
            bandaram Satheesh E. Bandaram
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: