bugs.core_4233_test. In PSQL modules with declared cursors engine could assign value to the wrong variable