diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-05-06 02:02:08 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-05-06 02:02:08 +0400 |
commit | cca59e83d7a309729f0e079682d1dfa34bbd768e (patch) | |
tree | e68e344b9f436b051706e830672ac8fbaa869662 /include/mysql_com.h | |
parent | 24a14875bc19d2959393aec9dbfe4b098b73b592 (diff) | |
download | mariadb-git-cca59e83d7a309729f0e079682d1dfa34bbd768e.tar.gz |
Clean-up, give better names, add comments to
thd->in_multi_stmt_transaction() and thd->active_transaction().
Diffstat (limited to 'include/mysql_com.h')
-rw-r--r-- | include/mysql_com.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index e4e34141d43..c510c12dbf7 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -197,7 +197,14 @@ enum enum_server_command & ~CLIENT_COMPRESS) \ & ~CLIENT_SSL_VERIFY_SERVER_CERT) -#define SERVER_STATUS_IN_TRANS 1 /* Transaction has started */ +/** + Is raised when a multi-statement transaction + has been started, either explicitly, by means + of BEGIN or COMMIT AND CHAIN, or + implicitly, by the first transactional + statement, when autocommit=off. +*/ +#define SERVER_STATUS_IN_TRANS 1 #define SERVER_STATUS_AUTOCOMMIT 2 /* Server in auto_commit mode */ #define SERVER_MORE_RESULTS_EXISTS 8 /* Multi query - next query exists */ #define SERVER_QUERY_NO_GOOD_INDEX_USED 16 |