Missing ParameterStatus for backslash_quote

From: Michael Paesold <mpaesold(at)gmx(dot)at>
To: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Missing ParameterStatus for backslash_quote
Date: 2006-11-26 21:22:47
Message-ID: 456A05A7.70109@gmx.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

While trying to finish the support for standard_conforming_strings in
the JDBC driver, I realized that there is also a new variable
"backslash_quote" that controls whether a back-slash may be used to
escape a single quote inside a string constant.

Assuming the documentation is correct, this variable is not reported via
ParameterStatus messages.
http://developer.postgresql.org/pgdocs/postgres/protocol-flow.html#PROTOCOL-ASYNC

This is a problem for the query parsing code inside the JDBC driver
because it needs to know about the state of this variable so that
parsing a query in the driver has the same result as in the backend.

I therefore ask to add backslash_quote to the hardcoded list of
variables that are reported via ParameterStatus in 8.2 as well as all
back-branches that support V3 as well as the backslash_quote variable
(7.4, 8.0, 8.1, I guess).

Best Regards
Michael Paesold

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2006-11-26 22:08:54 Re: [PATCHES] Avg performance for int8/numeric
Previous Message Andrew Dunstan 2006-11-26 21:22:01 Re: "Optional ident" authentication