From 19e0e35bcd3d0a1e46cb294ab08fbe062d4cf0d6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 4 Aug 2002 04:31:44 +0000 Subject: The attached patch implements START TRANSACTION, per SQL99. The functionality of the command is basically identical to that of BEGIN; it just accepts a few extra options (only one of which PostgreSQL currently implements), and is standards-compliant. The patch includes a simple regression test and documentation. [ Regression tests removed, per Peter.] Neil Conway --- src/include/nodes/parsenodes.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/include/nodes/parsenodes.h') diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 467208c95cd..07e985b377b 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.196 2002/07/30 16:55:45 momjian Exp $ + * $Id: parsenodes.h,v 1.197 2002/08/04 04:31:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1387,13 +1387,14 @@ typedef struct UnlistenStmt } UnlistenStmt; /* ---------------------- - * {Begin|Abort|End} Transaction Statement + * {Begin|Commit|Rollback} Transaction Statement * ---------------------- */ typedef struct TransactionStmt { NodeTag type; - int command; /* BEGIN|END|ABORT */ + int command; /* BEGIN_TRANS|START|COMMIT|ROLLBACK */ + List *options; } TransactionStmt; /* ---------------------- -- cgit v1.2.3