]> granicus.if.org Git - postgresql/commitdiff
Fix for BEGIN with ISOLATION/READONLY clauses.
authorBruce Momjian <bruce@momjian.us>
Mon, 19 Apr 2004 21:21:34 +0000 (21:21 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 19 Apr 2004 21:21:34 +0000 (21:21 +0000)
Fix for code originally added for 7.5.

src/backend/tcop/utility.c
src/backend/utils/misc/guc.c

index 11b3ff168ac65f6226786bd9a78b1fb31e03ca2e..45bf7d0f1c059bf096f3bee4bdca04485d0fcb51 100644 (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();
index 5f12a374097f0cc51627f92964de36aad25cd1e6..60efee3d9241d95e516bc37622e7596cec5cea3b 100644 (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,