projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b0a0d
)
Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
author
Itagaki Takahiro
<
[email protected]
>
Tue, 28 Sep 2010 05:26:03 +0000
(14:26 +0900)
committer
Itagaki Takahiro
<
[email protected]
>
Tue, 28 Sep 2010 05:26:03 +0000
(14:26 +0900)
Backpatch to 8.3.
Reported by Sergey Burladyan.
src/bin/psql/common.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/common.c
b/src/bin/psql/common.c
index c482707e151f01c189f6c36b4db8e648dd7488db..c8fc085fa04b49ce5cfac45963b01e3404ff1459 100644
(file)
--- a/
src/bin/psql/common.c
+++ b/
src/bin/psql/common.c
@@
-1369,6
+1369,9
@@
command_no_begin(const char *query)
return true;
}
+ if (wordlen == 7 && pg_strncasecmp(query, "discard", 7) == 0)
+ return true;
+
return false;
}