summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_libmysql.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2013-02-07 18:45:49 +0100
committerAndrey Hristov <andrey@php.net>2013-02-07 18:45:49 +0100
commitafacdecd1f8001b143e86676859d570ebf4659b9 (patch)
tree0cae34ab7ba26f3e4a9b844e342b3b0f59652148 /ext/mysqli/mysqli_libmysql.h
parent403d4fbbffdd11c82caa7a6eac2e32d9b57f1ce3 (diff)
downloadphp-git-afacdecd1f8001b143e86676859d570ebf4659b9.tar.gz
Add support for begin_transaction in libmysql mode.
Add support for flags and name for commit/rollback in libmysql mode
Diffstat (limited to 'ext/mysqli/mysqli_libmysql.h')
-rw-r--r--ext/mysqli/mysqli_libmysql.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_libmysql.h b/ext/mysqli/mysqli_libmysql.h
index 3a7b91b995..e10e3702ea 100644
--- a/ext/mysqli/mysqli_libmysql.h
+++ b/ext/mysqli/mysqli_libmysql.h
@@ -42,6 +42,18 @@
#define mysqli_change_user_silent(c, u, p, d, p_len) mysql_change_user((c), (u), (p), (d))
+#define TRANS_START_NO_OPT 0
+#define TRANS_START_WITH_CONSISTENT_SNAPSHOT 1
+#define TRANS_START_READ_WRITE 2
+#define TRANS_START_READ_ONLY 4
+
+#define TRANS_COR_NO_OPT 0
+#define TRANS_COR_AND_CHAIN 1
+#define TRANS_COR_AND_NO_CHAIN 2
+#define TRANS_COR_RELEASE 4
+#define TRANS_COR_NO_RELEASE 8
+
+
/*
These functions also reside in ext/mysqlnd/mysqlnd_portability.h but since it is only made
available if one wants to build mysqli against mysqlnd and they are useful for libmysql as