diff options
author | Andrey Hristov <andrey@php.net> | 2011-02-25 12:25:36 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2011-02-25 12:25:36 +0000 |
commit | 113cd9dc0f133441b9790a8d13f1e843c4df707f (patch) | |
tree | 41cc85efcaffb8e5dd68a73540a4a4ffd354d1f4 /ext/mysqlnd/mysqlnd.h | |
parent | e79bf567e8a4f323d2526f0f96a37f2e52d3b5ce (diff) | |
download | php-git-113cd9dc0f133441b9790a8d13f1e843c4df707f.tar.gz |
move from macros to functions, which can be overwritten, if needed
Diffstat (limited to 'ext/mysqlnd/mysqlnd.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mysqlnd/mysqlnd.h b/ext/mysqlnd/mysqlnd.h index 9364fd2718..4b609ae521 100644 --- a/ext/mysqlnd/mysqlnd.h +++ b/ext/mysqlnd/mysqlnd.h @@ -22,8 +22,8 @@ #ifndef MYSQLND_H #define MYSQLND_H -#define MYSQLND_VERSION "mysqlnd 5.0.7-dev - 091210 - $Revision$" -#define MYSQLND_VERSION_ID 50007 +#define MYSQLND_VERSION "mysqlnd 5.0.9-dev - 20102224 - $Revision$" +#define MYSQLND_VERSION_ID 50009 /* This forces inlining of some accessor functions */ #define MYSQLND_USE_OPTIMISATIONS 0 @@ -198,9 +198,9 @@ PHPAPI void mysqlnd_local_infile_default(MYSQLND *conn); PHPAPI void mysqlnd_set_local_infile_handler(MYSQLND * const conn, const char * const funcname); /* Simple commands */ -#define mysqlnd_autocommit(conn, mode) (conn)->m->query((conn),(mode) ? "SET AUTOCOMMIT=1":"SET AUTOCOMMIT=0", 16 TSRMLS_CC) -#define mysqlnd_commit(conn) (conn)->m->query((conn), "COMMIT", sizeof("COMMIT")-1 TSRMLS_CC) -#define mysqlnd_rollback(conn) (conn)->m->query((conn), "ROLLBACK", sizeof("ROLLBACK")-1 TSRMLS_CC) +#define mysqlnd_autocommit(conn, mode) (conn)->m->set_autocommit((conn), (mode) TSRMLS_CC) +#define mysqlnd_commit(conn) (conn)->m->tx_commit((conn) TSRMLS_CC) +#define mysqlnd_rollback(conn) (conn)->m->tx_rollback((conn) TSRMLS_CC) #define mysqlnd_list_dbs(conn, wild) (conn)->m->list_method((conn), wild? "SHOW DATABASES LIKE %s":"SHOW DATABASES", (wild), NULL TSRMLS_CC) #define mysqlnd_list_fields(conn, tab,wild) (conn)->m->list_fields((conn), (tab), (wild) TSRMLS_CC) #define mysqlnd_list_processes(conn) (conn)->m->list_method((conn), "SHOW PROCESSLIST", NULL, NULL TSRMLS_CC) |