Fix "Parse: Unable to parse the query:" log message so that it emits
authorToshihiro Kitagawa <kitagawa at sraoss.co.jp>
Fri, 22 Jul 2011 08:53:11 +0000 (08:53 +0000)
committerToshihiro Kitagawa <kitagawa at sraoss.co.jp>
Fri, 22 Jul 2011 08:53:11 +0000 (08:53 +0000)
the query. It has emitted the prepared statement name till now.

pool_proto_modules.c

index 72d800b7ff1dd623bd078b122284c51244fbe68a..5c3f31b8a1baba2ca9f897e57870e253756bf4d9 100644 (file)
@@ -637,7 +637,7 @@ POOL_STATUS Parse(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend,
                 * The command will be sent to all backends in replication mode
                 * or master/primary in master/slave mode.
                 */
-               pool_log("Parse: Unable to parse the query: %s", contents);
+               pool_log("Parse: Unable to parse the query: %s", stmt);
                parse_tree_list = raw_parser(POOL_DUMMY_QUERY);
        }