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.
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.

treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres