Fix the location which gets the parse tree because it is used after
authorToshihiro Kitagawa <kitagawa at sraoss.co.jp>
Fri, 12 Aug 2011 16:37:22 +0000 (16:37 +0000)
committerToshihiro Kitagawa <kitagawa at sraoss.co.jp>
Fri, 12 Aug 2011 16:37:22 +0000 (16:37 +0000)
the block. This fix is the following continuances:

[Pgpool-committers] pgpool - pgpool-II: It appears that the last commit
 below has problem

pool_proto_modules.c

index 9672e4b1f509ded8863d7fc1b53620714957413c..0d4be60c3e43d87e4ec292a31242b009dbdb812d 100644 (file)
@@ -1350,9 +1350,10 @@ POOL_STATUS ReadyForQuery(POOL_CONNECTION *frontend,
 
        if (pool_is_query_in_progress())
        {
+               node = pool_get_parse_tree();
+
                if (pool_is_command_success())
                {
-                       node = pool_get_parse_tree();
                        query = pool_get_query_string();
 
                        if (node)