Skip to content

Commit 65dc2e0

Browse files
author
Hiroshi Inoue
committed
Change LOCK statements to start new transaction
in auto-commit off mode.
1 parent 41e7328 commit 65dc2e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/interfaces/odbc/statement.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ static struct
6868
{
6969
STMT_TYPE_PROCCALL, "{"
7070
},
71+
{
72+
STMT_TYPE_LOCK, "LOCK"
73+
},
7174
{
7275
0, NULL
7376
}

src/interfaces/odbc/statement.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ enum
9696
STMT_TYPE_DROP,
9797
STMT_TYPE_GRANT,
9898
STMT_TYPE_REVOKE,
99-
STMT_TYPE_PROCCALL
99+
STMT_TYPE_PROCCALL,
100+
STMT_TYPE_LOCK
100101
};
101102

102103
#define STMT_UPDATE(stmt) (stmt->statement_type > STMT_TYPE_SELECT)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy