summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2013-10-04 17:50:28 +0000
committerBruce Momjian2013-10-04 17:50:28 +0000
commita54141aebcafa02cba5204596758dadbbeb0f78e (patch)
tree0aaccd0fb99565c20d8449f8d2bbe6a5cdbb042c /src/include
parent4655b607f34836ae19f262bfdfe95c0be74d920c (diff)
Issue error on SET outside transaction block in some cases
Issue error for SET LOCAL/CONSTRAINTS/TRANSACTION outside a transaction block, as they have no effect. Per suggestion from Morten Hustveit
Diffstat (limited to 'src/include')
-rw-r--r--src/include/utils/guc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 99211c1f6c..89ee40c334 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -334,7 +334,7 @@ extern void SetPGVariable(const char *name, List *args, bool is_local);
extern void GetPGVariable(const char *name, DestReceiver *dest);
extern TupleDesc GetPGVariableResultDesc(const char *name);
-extern void ExecSetVariableStmt(VariableSetStmt *stmt);
+extern void ExecSetVariableStmt(VariableSetStmt *stmt, bool isTopLevel);
extern char *ExtractSetVariableArgs(VariableSetStmt *stmt);
extern void ProcessGUCArray(ArrayType *array,