Re: Fix SQLSTATE for Bind referencing a nonexistent prepared statement

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: koshino(at)sraoss(dot)co(dot)jp
Cc: pgpool-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix SQLSTATE for Bind referencing a nonexistent prepared statement
Date: 2026-10-14 01:04:40
Message-ID: 20261014.100440.2266889325642245602.ishii@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-hackers

> Hi,
>
> The attached patch fixes the SQLSTATE returned when Bind references
> a nonexistent prepared statement.
>
> Pgpool-II returned XX000 (internal_error), whereas PostgreSQL returns
> 26000 (invalid_sql_statement_name). The patch changes the SQLSTATE to
> 26000 to match PostgreSQL.
>
> This issue was originally reported here:
>
> https://github.com/pgpool/pgpool2/issues/180

The patch looks good to me.

Regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

In response to

Browse pgpool-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-10-14 01:08:06 Re: Fix extended-protocol DISCARD handling.
Previous Message Koshino Taiki 2026-10-14 00:59:38 Fix SQLSTATE for Bind referencing a nonexistent prepared statement