Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE

From: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: aman(at)stack-auth(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE
Date: 2026-12-02 18:29:28
Message-ID: CAJTYsWWtUTfPcO2nM44atrnHrWU2i09cJj37=Zfk6YCT0=64hw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On Wed, 2 Dec 2026 at 22:23, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Wed, Dec 2, 2026 at 9:30 PM PG Bug reporting form
> <noreply(at)postgresql(dot)org> wrote:
> > ecpg crashes with a segmentation fault when a FETCH or MOVE names a
> > cursor that was never declared.
>
> Thanks for the report! I was able to reproduce the issue.

+1

> I've attached a patch to fix it. Thoughts?

Patch lgtm. Thanks for the fast turn around.

Regards,
Ayush

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Aman Ganapathy 2026-12-02 18:47:21 Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE
Previous Message Kirill Reshke 2026-12-02 18:21:38 Re: BUG #19965: btree_gist index on timetz returns too few rows for <, > and <>