pgpool2.git / summary / log / commit / refs

commit    2b1e71d9fbabec2b0f5e7fc3bda2ae38382cfce9
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Sun Jan 25 00:09:01 2009 +0000

    Remove unused static function check_whereClause()
    Update Copyright year


pool_rewrite_query.c | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/pool_rewrite_query.c b/pool_rewrite_query.c index f8a0ca811..d1488ad2a 100644 --- a/pool_rewrite_query.c +++ b/pool_rewrite_query.c @@ -5,7 +5,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2008 PgPool Global Development Group + * Copyright (c) 2003-2009 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -34,7 +34,6 @@ static void examInsertStmt(Node *node,POOL_CONNECTION_POOL *backend,RewriteQuery static void examSelectStmt(Node *node,POOL_CONNECTION_POOL *backend,RewriteQuery *message); static char *delimistr(char *str); static int direct_parallel_query(RewriteQuery *message); -static int check_whereClause(Node *where); static void initMessage(RewriteQuery *message); static void initdblink(ConInfoTodblink *dblink, POOL_CONNECTION_POOL *backend); static void analyze_debug(RewriteQuery *message); @@ -462,35 +461,6 @@ RewriteQuery *rewrite_query_stmt(Node *node,POOL_CONNECTION *frontend,POOL_CONNE #define POOL_PARALLEL "pool_parallel" #define POOL_LOADBALANCE "pool_loadbalance" -static int check_whereClause(Node *where) -{ - if(IsA(where,SubLink) || IsA(where,RangeSubselect) - || IsA(where,FuncCall) || IsA(where, RowExpr)) - { - return 1; - } - else if(IsA(where, A_Expr)) - { - A_Expr *expr = (A_Expr *) where; - int count = 0; - - if(expr->lexpr) - { - count = check_whereClause(expr->lexpr); - } - - if(expr->rexpr) - { - count += check_whereClause(expr->rexpr); - } - return count; - } - else - { - return 0; - } -} - /* * After analyzing query, check the analyze[0]->state. * if the analyze[0]->state ==`P`, this query can be executed [parent: f1041d7b019a]