Fix for BEGIN with ISOLATION/READONLY clauses.

Fix for code originally added for 7.5.
This commit is contained in:
Bruce Momjian 2004-04-19 21:21:34 +00:00
parent 31338352bd
commit 09f317539a
2 changed files with 9 additions and 10 deletions

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.211 2004/03/23 19:35:17 tgl Exp $
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.212 2004/04/19 21:21:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -302,15 +302,12 @@ ProcessUtility(Node *parsetree,
switch (stmt->kind)
{
/*
* START TRANSACTION, as defined by SQL99:
* Identical to BEGIN, except that it takes a few
* additional options. Same code for both.
*/
case TRANS_STMT_BEGIN:
BeginTransactionBlock();
break;
/*
* START TRANSACTION, as defined by SQL99:
* Identical to BEGIN, except that it takes a few
* additional options.
*/
case TRANS_STMT_START:
{
BeginTransactionBlock();

View File

@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.199 2004/04/07 18:52:26 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.200 2004/04/19 21:21:34 momjian Exp $
*
*--------------------------------------------------------------------
*/
@ -3394,6 +3394,8 @@ void
SetPGVariable(const char *name, List *args, bool is_local)
{
char *argstring = flatten_set_variable_args(name, args);
printf("bjm: %s %s\n", name, argstring);
fflush(stdout);
/* Note SET DEFAULT (argstring == NULL) is equivalent to RESET */
set_config_option(name,