BUG #14459: Error from query with too many binds has no message

From: sean(at)seantheprogrammer(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14459: Error from query with too many binds has no message
Date: 2016-12-10 11:55:01
Message-ID: 20161210115501.1410.14722@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14459
Logged by: Sean Griffin
Email address: sean(at)seantheprogrammer(dot)com
PostgreSQL version: 9.6.1
Operating system: macOS
Description:

If a query is performed with more than 34464 bind parameters, the query will
fail. This is fine, but attempting to get the error message with
`PQresultErrorField` and `PG_DIAG_MESSAGE_PRIMARY` will return `NULL`. The
documentation states that the `PG_DIAG_MESSAGE_PRIMARY` field is always
present.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-12-11 00:14:31 Re: BUG #14459: Error from query with too many binds has no message
Previous Message garfield.lewis 2016-12-09 15:35:17 BUG #14458: PQfmod returns -1 for aggregate functions