mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Change LOCK statements to start new transaction
in auto-commit off mode.
This commit is contained in:
parent
41e7328068
commit
65dc2e0d8c
2 changed files with 5 additions and 1 deletions
|
|
@ -68,6 +68,9 @@ static struct
|
|||
{
|
||||
STMT_TYPE_PROCCALL, "{"
|
||||
},
|
||||
{
|
||||
STMT_TYPE_LOCK, "LOCK"
|
||||
},
|
||||
{
|
||||
0, NULL
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue