pgpool2.git / summary / log / commit / refs

commit    0ca2444bba63ebaa47617bc8bb355d4d18c2e4b7
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Thu Jun 10 06:46:37 2010 +0000

    Unbrake SimpleQuery(). Now it handles master/slave mode correctly.


pool_proto_modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool_proto_modules.c b/pool_proto_modules.c index c6f146df4..09f221bda 100644 --- a/pool_proto_modules.c +++ b/pool_proto_modules.c @@ -377,7 +377,7 @@ static int is_temp_table(POOL_CONNECTION_POOL *backend, Node *node); * - statement is INSERT * - either "INSERT LOCK" comment exists or insert_lock directive specified */ - if (REPLICATION) + if (!RAW_MODE) { /* start a transaction if needed */ if (start_internal_transaction(frontend, backend, (Node *)node) != POOL_CONTINUE) @@ -421,7 +421,7 @@ static int is_temp_table(POOL_CONNECTION_POOL *backend, Node *node); TSTATE(backend) = 'T'; } - if (REPLICATION || PARALLEL_MODE) + if (!RAW_MODE) { /* check if query is "COMMIT" or "ROLLBACK" */ commit = is_commit_query(node); [parent: 07678b7c9823]