exec_eval_simple_expr() needs to do CommandCounterIncrement() not just

GetTransactionSnapshot() to ensure ActiveSnapshot advances properly.
Sigh.  Extend regression test so it reveals this error too.
This commit is contained in:
Tom Lane
2004-12-21 18:33:36 +00:00
parent c21c658b36
commit 96b42de9a8
3 changed files with 20 additions and 2 deletions

View File

@ -1802,6 +1802,8 @@ end$$ language plpgsql;
select sp_add_user('user1');
select sp_add_user('user2');
select sp_add_user('user2');
select sp_add_user('user3');
select sp_add_user('user3');
drop function sp_add_user(text);
drop function sp_id_user(text);