diff options
author | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-09-28 14:20:17 +0900 |
---|---|---|
committer | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-09-28 14:20:17 +0900 |
commit | d08c698d9d47f9d004fd0bb6212ca80259e2fe9c (patch) | |
tree | 377293bb95f00dcd49bb4d414210cb76233a2e42 | |
parent | 4d355a8336e0f2265b31d678ffd1ee5cf9e79fae (diff) | |
download | postgresql-d08c698d9d47f9d004fd0bb6212ca80259e2fe9c.tar.gz postgresql-d08c698d9d47f9d004fd0bb6212ca80259e2fe9c.zip |
Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
Backpatch to 8.3.
Reported by Sergey Burladyan.
-rw-r--r-- | src/bin/psql/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |