Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
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.
>>