git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d355a8)
Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
2010年9月28日 05:20:17 +0000 (14:20 +0900)
2010年9月28日 05:20:17 +0000 (14:20 +0900)
Backpatch to 8.3.

Reported by Sergey Burladyan.


diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index c2c572c42da25b3065e19ac9f5450b6f2b14fd61..7ba2f73c5d0a664f1104a3520d2fbb3f898333a9 100644 (file)
--- 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;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /