[Pgpool-committers] pgpool - pgpool-II: Fix is_select_query() to test "sql" parameter is

User T-ishii t-ishii at pgfoundry.org
Sat May 2 08:48:46 UTC 2009


Log Message:
-----------
Fix is_select_query() to test "sql" parameter is NULL.  As of 2.2,
pgpool sets Portal->sql_string to NULL for SQL command PREPARE.
Usually this is ok, since in most cases SQL command EXECUTE follows
anyway. Problem is, some applications mix PREPARE with extended
protocol command "EXECUTE" and so on. Execute() seems to think this
never happens but it is not real. Someday we should extract actual
query string from PrepareStmt->query and set it to Portal->sql_string.

Modified Files:
--------------
    pgpool-II:
        pool_process_query.c (r1.144 -> r1.145)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_process_query.c.diff?r1=1.144&r2=1.145)


More information about the Pgpool-committers mailing list