Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-882

Updatable view should check view condition upon upsert

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 4.0.0
    • None
    • None

    Description

      Updating a row can make it disappear from the view:

      create table X (X varchar primary key, Y varchar);
      create view X1 as select * from X where Y = '1';
      upsert into X1 values('1', '1');
      // now the row with key '1' is visible through the view
      upsert into X1 values('1', '2');
      // row with key '1' is no longer visible
      upsert into X1 values('2', '2');
      // the new row never shows up in the view

      Attachments

        1. PHOENIX-882.patch
          17 kB
          James R. Taylor

        Activity

          People

            Unassigned Unassigned
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: