Change LOCK statements to start new transaction

in auto-commit off mode.
This commit is contained in:
Hiroshi Inoue 2002-08-09 10:04:21 +00:00
parent 41e7328068
commit 65dc2e0d8c
2 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,9 @@ static struct
{ {
STMT_TYPE_PROCCALL, "{" STMT_TYPE_PROCCALL, "{"
}, },
{
STMT_TYPE_LOCK, "LOCK"
},
{ {
0, NULL 0, NULL
} }

View File

@ -96,7 +96,8 @@ enum
STMT_TYPE_DROP, STMT_TYPE_DROP,
STMT_TYPE_GRANT, STMT_TYPE_GRANT,
STMT_TYPE_REVOKE, STMT_TYPE_REVOKE,
STMT_TYPE_PROCCALL STMT_TYPE_PROCCALL,
STMT_TYPE_LOCK
}; };
#define STMT_UPDATE(stmt) (stmt->statement_type > STMT_TYPE_SELECT) #define STMT_UPDATE(stmt) (stmt->statement_type > STMT_TYPE_SELECT)