pgpool2.git / summary / log / commit / refs

commit    b8a1450ee8a194698b593ca6c7f979f89ca19eda
Author:   Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date:     Mon Aug 08 04:24:22 2011 +0000

    Fix insert_lock so that it works correctly even if the table definition
    such as the following:
    
    CREATE TABLE login_log (id integer
        DEFAULT nextval(('"login_log_id_seq"'::text)::regclass) NOT NULL


pool_process_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool_process_query.c b/pool_process_query.c index 540bf138e..c376e7bd7 100644 --- a/pool_process_query.c +++ b/pool_process_query.c @@ -2855,7 +2855,7 @@ POOL_STATUS insert_lock(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend } pool_debug("adsrc: %s", adsrc); - if (regcomp(&preg, "nextval\\('(.+)'", REG_EXTENDED|REG_NEWLINE) != 0) + if (regcomp(&preg, "nextval\\(+'(.+)'", REG_EXTENDED|REG_NEWLINE) != 0) { pool_error("insert_lock: regex compile failed"); return POOL_END; [parent: b5bc432f4fb3]