summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_driver.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-11-02 15:08:01 +0000
committerAndrey Hristov <andrey@php.net>2011-11-02 15:08:01 +0000
commit2627fafcbdd81d9ec88e891cd6077ab42080352d (patch)
tree920ad6705730e61b4a54206973c3120571f5211f /ext/mysqlnd/mysqlnd_driver.c
parent77477945b3e0bbc652a1258c45b0ad10cd9d8f18 (diff)
downloadphp-git-2627fafcbdd81d9ec88e891cd6077ab42080352d.tar.gz
- shift a bit of code around
- when cloning use the methods of the original object
Diffstat (limited to 'ext/mysqlnd/mysqlnd_driver.c')
-rw-r--r--ext/mysqlnd/mysqlnd_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_driver.c b/ext/mysqlnd/mysqlnd_driver.c
index 3a61621ac5..26fe084ddd 100644
--- a/ext/mysqlnd/mysqlnd_driver.c
+++ b/ext/mysqlnd/mysqlnd_driver.c
@@ -174,7 +174,7 @@ MYSQLND_METHOD(mysqlnd_object_factory, clone_connection_object)(MYSQLND * to_be_
DBG_RETURN(NULL);
}
new_object->persistent = to_be_cloned->persistent;
- new_object->m = mysqlnd_conn_get_methods();
+ new_object->m = to_be_cloned->m;
new_object->data = to_be_cloned->data->m->get_reference(to_be_cloned->data TSRMLS_CC);
if (!new_object->data) {