Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-1121

LP Bug: 1439319 - Internal error when dropping view with sequence

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.1 (pre-incubation)
    • sql-security
    • None

    Description

      Internal error: assertion failure is returned.

      Security is enabled. Log in as DB_ROOT user. Regular non-DB_ROOT user will not be able to create such a view due to an error. (See Bug #1439316)
      User creates schema, table, and sequence.
      User creates view with sequence.
      User drops view, but error is returned and drop schema also fails:

      SQL>create schema sch11;

      — SQL operation complete.

      SQL>set schema sch11;

      — SQL operation complete.

      SQL>create table mytable (a int, b int);

      — SQL operation complete.

      SQL>create sequence myseq;

      — SQL operation complete.

      SQL>create view myview as select seqnum(myseq) as a from mytable;

      — SQL operation complete.

      SQL>drop view myview;

          • ERROR[2006] Internal error: assertion failure (objectRefd.objectType == COM_BASE_TABLE_OBJECT_LIT || objectRefd.objectType == COM_USER_DEFINED_ROUTINE_OBJECT_LIT || objectRefd.objectType == COM_VIEW_OBJECT_LIT) in file at line -99999.
          • ERROR[8839] Transaction was aborted.

      SQL>drop schema sch11 cascade;

          • ERROR[1069] Schema TRAFODION.SCH11 could not be dropped.

      SQL>

      Attachments

        Activity

          People

            cliffgray Cliff Gray
            paul.low Paul Low
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: