Commit:    403d4fbbffdd11c82caa7a6eac2e32d9b57f1ce3
Author:    Andrey Hristov <and...@php.net>         Thu, 7 Feb 2013 18:29:19 
+0100
Parents:   49e3d91ad91bd3b65e2142641f80de0401396b85
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=403d4fbbffdd11c82caa7a6eac2e32d9b57f1ce3

Log:
Export new calls

Changed paths:
  M  ext/mysqlnd/mysqlnd.c
  M  ext/mysqlnd/mysqlnd.h
  M  ext/mysqlnd/mysqlnd_libmysql_compat.h


Diff:
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 0e47def..959f3e0 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -2761,9 +2761,6 @@ MYSQLND_METHOD(mysqlnd_conn_data, 
tx_begin)(MYSQLND_CONN_DATA * conn, const unsi
 /* }}} */
 
 
-typedef enum_func_status       (*func_mysqlnd_conn_data__)(MYSQLND_CONN_DATA * 
conn, const unsigned int flags, const char * const name TSRMLS_DC);
-
-
 /* {{{ mysqlnd_conn_data::local_tx_start */
 static enum_func_status
 MYSQLND_METHOD(mysqlnd_conn_data, local_tx_start)(MYSQLND_CONN_DATA * conn, 
size_t this_func TSRMLS_DC)
diff --git a/ext/mysqlnd/mysqlnd.h b/ext/mysqlnd/mysqlnd.h
index bf0f70b..7adf3b6 100644
--- a/ext/mysqlnd/mysqlnd.h
+++ b/ext/mysqlnd/mysqlnd.h
@@ -192,8 +192,9 @@ PHPAPI void 
mysqlnd_set_local_infile_handler(MYSQLND_CONN_DATA * const conn, con
 
 /* Simple commands */
 #define mysqlnd_autocommit(conn, mode)         
((conn)->data)->m->set_autocommit((conn)->data, (mode) TSRMLS_CC)
-#define mysqlnd_commit(conn)                           
((conn)->data)->m->tx_commit((conn)->data TSRMLS_CC)
-#define mysqlnd_rollback(conn)                         
((conn)->data)->m->tx_rollback((conn)->data TSRMLS_CC)
+#define mysqlnd_begin_transaction(conn,flags,name) 
((conn)->data)->m->tx_begin((conn)->data, (flags), (name) TSRMLS_CC)
+#define mysqlnd_commit(conn, flags, name)      
((conn)->data)->m->tx_commit_or_rollback((conn)->data, TRUE, (flags), (name) 
TSRMLS_CC)
+#define mysqlnd_rollback(conn, flags, name)    
((conn)->data)->m->tx_commit_or_rollback((conn)->data, FALSE, (flags), (name) 
TSRMLS_CC)
 #define mysqlnd_list_dbs(conn, wild)           
((conn)->data)->m->list_method((conn)->data, wild? "SHOW DATABASES LIKE 
%s":"SHOW DATABASES", (wild), NULL TSRMLS_CC)
 #define mysqlnd_list_fields(conn, tab,wild)    
((conn)->data)->m->list_fields((conn)->data, (tab), (wild) TSRMLS_CC)
 #define mysqlnd_list_processes(conn)           
((conn)->data)->m->list_method((conn)->data, "SHOW PROCESSLIST", NULL, NULL 
TSRMLS_CC)
diff --git a/ext/mysqlnd/mysqlnd_libmysql_compat.h 
b/ext/mysqlnd/mysqlnd_libmysql_compat.h
index e3ab9ee..516200e 100644
--- a/ext/mysqlnd/mysqlnd_libmysql_compat.h
+++ b/ext/mysqlnd/mysqlnd_libmysql_compat.h
@@ -44,7 +44,7 @@
 #define mysql_change_user(r,a,b,c)             mysqlnd_change_user((r), (a), 
(b), (c), FALSE)
 #define mysql_character_set_name(c)            mysqlnd_character_set_name((c))
 #define mysql_close(r)                                 mysqlnd_close((r), 
MYSQLND_CLOSE_EXPLICIT)
-#define mysql_commit(r)                                        
mysqlnd_commit((r))
+#define mysql_commit(r)                                        
mysqlnd_commit((r), TRANS_COR_NO_OPT, NULL)
 #define mysql_data_seek(r,o)                   mysqlnd_data_seek((r),(o))
 #define mysql_debug(x)                                 mysqlnd_debug((x))
 #define mysql_dump_debug_info(r)               mysqlnd_dump_debug_info((r))
@@ -74,7 +74,7 @@
 #define mysql_real_escape_string(r,a,b,c) mysqlnd_real_escape_string((r), (a), 
(b), (c))
 #define mysql_real_query(r,a,b)                        mysqlnd_query((r), (a), 
(b))
 #define mysql_refresh(conn, options)   mysqlnd_refresh((conn), (options))
-#define mysql_rollback(r)                              mysqlnd_rollback((r))
+#define mysql_rollback(r)                              mysqlnd_rollback((r), 
TRANS_COR_NO_OPT, NULL)
 #define mysql_select_db(r,a)                   mysqlnd_select_db((r), (a) 
,strlen((a)))
 #define mysql_set_server_option(r,o)   mysqlnd_set_server_option((r), (o))
 #define mysql_set_character_set(r,a)   mysqlnd_set_character_set((r), (a))


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to