From: Hiroshi Inoue Date: Fri, 9 Aug 2002 10:04:21 +0000 (+0000) Subject: Change LOCK statements to start new transaction X-Git-Tag: REL7_3~978 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65dc2e0d8c1200a63e5d293f0cfa95a836eb984c;p=postgresql Change LOCK statements to start new transaction in auto-commit off mode. --- diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c index 66dbb0a41d..c8742a6cd3 100644 --- a/src/interfaces/odbc/statement.c +++ b/src/interfaces/odbc/statement.c @@ -68,6 +68,9 @@ static struct { STMT_TYPE_PROCCALL, "{" }, + { + STMT_TYPE_LOCK, "LOCK" + }, { 0, NULL } diff --git a/src/interfaces/odbc/statement.h b/src/interfaces/odbc/statement.h index f1c2ddd4c1..fd220671e5 100644 --- a/src/interfaces/odbc/statement.h +++ b/src/interfaces/odbc/statement.h @@ -96,7 +96,8 @@ enum STMT_TYPE_DROP, STMT_TYPE_GRANT, STMT_TYPE_REVOKE, - STMT_TYPE_PROCCALL + STMT_TYPE_PROCCALL, + STMT_TYPE_LOCK }; #define STMT_UPDATE(stmt) (stmt->statement_type > STMT_TYPE_SELECT)