From 29f88a003f1ff04adfbf876e690f8d9a697a0c70 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Wed, 2 Nov 2011 15:08:01 +0000 Subject: - shift a bit of code around - when cloning use the methods of the original object --- ext/mysqlnd/mysqlnd_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_driver.c') diff --git a/ext/mysqlnd/mysqlnd_driver.c b/ext/mysqlnd/mysqlnd_driver.c index adcd17d5ca..09d0dd3b35 100644 --- a/ext/mysqlnd/mysqlnd_driver.c +++ b/ext/mysqlnd/mysqlnd_driver.c @@ -175,7 +175,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) { -- cgit v1.2.1