postgres.git / summary / log / commit / refs

commit    d08c698d9d47f9d004fd0bb6212ca80259e2fe9c
Author:   Itagaki Takahiro <itagaki.takahiro@gmail.com>
Date:     Tue Sep 28 05:20:17 2010 +0000
First released in: 9.1.0, 8.3.12, 8.4.5, 9.0.1

    Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
    Backpatch to 8.3.
    
    Reported by Sergey Burladyan.


src/bin/psql/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index c2c572c42da..7ba2f73c5d0 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1388,6 +1388,9 @@ command_no_begin(const char *query) return true; } + if (wordlen == 7 && pg_strncasecmp(query, "discard", 7) == 0) + return true; + return false; } [parent: 4d355a8336e0]