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

LP Bug: 1261993 - Select * and select count(*) show inconsistent results within a transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0 (pre-incubation)
    • dtm
    • None

    Description

      Within a transaction, after a row was inserted into a table, select * and select count from the same table showed inconsistent results. Select * showed the row that was inserted. Select count showed 0, as shown in the following example:

      >>create table t (a int);

      — SQL operation complete.
      >>begin work;

      — SQL operation complete.
      >>insert into t values (1);

      — 1 row(s) inserted.
      >>select * from t;

      A
      -----------

      1

      — 1 row(s) selected.
      >>select count from t;

      (EXPR)
      --------------------

      0

      — 1 row(s) selected.
      >>

      Attachments

        Activity

          People

            Unassigned Unassigned
            WTsai Weishiun Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: