pgsql: Fix broken list-munging in ecpg's remove_variables().

2024-12-01 Thread Tom Lane
Fix broken list-munging in ecpg's remove_variables(). The loops over cursor argument variables neglected to ever advance "prevvar". The code would accidentally do the right thing anyway when removing the first or second list entry, but if it had to remove the third or later entry then it would al

pgsql: Fix broken list-munging in ecpg's remove_variables().

2024-12-01 Thread Tom Lane
Fix broken list-munging in ecpg's remove_variables(). The loops over cursor argument variables neglected to ever advance "prevvar". The code would accidentally do the right thing anyway when removing the first or second list entry, but if it had to remove the third or later entry then it would al

pgsql: Fix broken list-munging in ecpg's remove_variables().

2024-12-01 Thread Tom Lane
Fix broken list-munging in ecpg's remove_variables(). The loops over cursor argument variables neglected to ever advance "prevvar". The code would accidentally do the right thing anyway when removing the first or second list entry, but if it had to remove the third or later entry then it would al

pgsql: Fix broken list-munging in ecpg's remove_variables().

2024-12-01 Thread Tom Lane
Fix broken list-munging in ecpg's remove_variables(). The loops over cursor argument variables neglected to ever advance "prevvar". The code would accidentally do the right thing anyway when removing the first or second list entry, but if it had to remove the third or later entry then it would al

pgsql: Fix broken list-munging in ecpg's remove_variables().

2024-12-01 Thread Tom Lane
Fix broken list-munging in ecpg's remove_variables(). The loops over cursor argument variables neglected to ever advance "prevvar". The code would accidentally do the right thing anyway when removing the first or second list entry, but if it had to remove the third or later entry then it would al

pgsql: Fix broken list-munging in ecpg's remove_variables().

2024-12-01 Thread Tom Lane
Fix broken list-munging in ecpg's remove_variables(). The loops over cursor argument variables neglected to ever advance "prevvar". The code would accidentally do the right thing anyway when removing the first or second list entry, but if it had to remove the third or later entry then it would al