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

Index has value of column which no longer exists in the table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 10.8.3.0
    • None
    • Network Server
    • None
    • Linux with Java 8 - 8.0.6.25
    • Normal
    • Workaround attached
    • Data corruption
    • Important

    Description

      From time to time an Index keeps a value, which has been deleted from the underlying table.

      This results in an error is the row with the value is selected.

      SELECT ID from Some.TABLE WHERE IndexedColumn= 'Remembered Value';

      ID

      --------------------

      1680880176

      ERROR 0A000: The DRDA command parseSQLDIAGSTT is not currently implemented.  The connection has been terminated.

       If only the Indexed Column is selected, then the Query returns 0 rows and produces no error - because just the index is searched.

      The Query Plan shows the index being used.

      Dropping and Recreating the index fixes the issue. However, I can reproduce this by reloading a database backup.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              geralcor Geraldine
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: