[pgpool-committers: 1712] pgpool: Fix JDBC exception of prepared statement including now() in rep

Yugo Nagata nagata at sraoss.co.jp
Mon Mar 24 18:57:32 JST 2014


Fix JDBC exception of prepared statement including now() in replication mode

With JDBC, when a prepared statement is executed more than PreparedThreshold times,
the statement is named and Describe message is sent after Parse. With named statement,
pgpool rewrite now() to parameter at Parse in replication mode. Hence, rewritten query
has additonal parameter than original. However, ParameterDescription message sent to
frontend, which is response of Describe, should include OIDs of the same number os
original query's parameters. Otherwize, JDBC raises ArrayIndexoutOfBoundsException.

Branch
------
V3_0_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6db4a388c79f993c71d736a326f9e3b99c7c9bae

Modified Files
--------------
pool_proto_modules.c |  107 ++++++++++++++++++++++++++++++++++++++++++++++++++
pool_proto_modules.h |    3 ++
pool_query_context.c |    1 +
pool_query_context.h |    1 +
pool_timestamp.c     |   13 +++---
5 files changed, 120 insertions(+), 5 deletions(-)



More information about the pgpool-committers mailing list