pgpool2.git / summary / log / commit / refs
commit 3bacb3baf3a7f0d2e64c4b42a406bb8e2ac9e4c9
Author: Yoshiharu Mori <y-mori at sraoss.co.jp>
Date: Wed Nov 14 04:59:20 2007 +0000
FIX:
It made a mistake in the processing of OUTER JOIN (syntax of C lang)
pool_rewrite_outfuncs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pool_rewrite_outfuncs.c b/pool_rewrite_outfuncs.c
index bb65fe6bd..1206d74ab 100644
--- a/pool_rewrite_outfuncs.c
+++ b/pool_rewrite_outfuncs.c
@@ -1401,7 +1401,7 @@ static void build_join_table(RewriteQuery *message,char *alias, int type)
if(lstate =='L' && state =='P')
{
int total = left_num + right_num;
- if(type == JRIGHT || type == JNORMAL || JINNER || JNATURAL_INNER)
+ if(type == JRIGHT || type == JNORMAL || type == JINNER || type == JNATURAL_INNER)
join->state = 'P';
else if((join->col_num <= total) && (type == JNATURAL_RIGHT))
join->state = 'P';
@@ -1413,7 +1413,7 @@ static void build_join_table(RewriteQuery *message,char *alias, int type)
else if(lstate =='P' && state == 'L')
{
int total = left_num + right_num;
- if(type == JRIGHT || type == JNORMAL || JINNER || JNATURAL_INNER)
+ if(type == JLEFT || type == JNORMAL || type == JINNER || type == JNATURAL_INNER)
join->state ='P';
else if((join->col_num <= total) && (type == JNATURAL_LEFT))
join->state = 'P';
[parent: 7ba993921304]