diff options
author | Hiroshi Inoue | 2002-08-09 10:04:21 +0000 |
---|---|---|
committer | Hiroshi Inoue | 2002-08-09 10:04:21 +0000 |
commit | 6d7a0a2be57bdac9c8cb0ee8907a3c51d8059b3c (patch) | |
tree | e2bed0b756b8dddf80aae2c084f4f61ceb828f88 | |
parent | b27859f01c0f7d30d3f785b90fb30c93e9c5ff71 (diff) |
Change LOCK statements to start new transaction
in auto-commit off mode.
-rw-r--r-- | src/interfaces/odbc/statement.c | 3 | ||||
-rw-r--r-- | src/interfaces/odbc/statement.h | 3 |
2 files changed, 5 insertions, 1 deletions
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 @@ -69,6 +69,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) |