Select * and select count(*) show inconsistent results within a transaction
Bug #1261993 reported by
Weishiun Tsai
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Released
|
High
|
John de Roo |
Bug 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)
-------
--- 1 row(s) selected.
>>
summary: |
Select * and select count(*) show inconsistent results within a - transaction. + transaction |
Changed in trafodion: | |
assignee: | nobody → Anoop Sharma (anoop-sharma) |
Changed in trafodion: | |
assignee: | Anoop Sharma (anoop-sharma) → John de Roo (john-deroo) |
information type: | Proprietary → Public |
tags: |
added: dtm removed: transaction |
To post a comment you must log in.
Fixed and verified in seatrans_2 branch. Merged into datalake_64 branch, revision 39062.