mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Change LOCK statements to start new transaction
in auto-commit off mode.
This commit is contained in:
parent
41e7328068
commit
65dc2e0d8c
@ -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 New Issue
Block a user