]> granicus.if.org Git - php/commitdiff
Don't forget to update the length too
authorAndrey Hristov <andrey@php.net>
Thu, 22 Oct 2009 17:36:12 +0000 (17:36 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 22 Oct 2009 17:36:12 +0000 (17:36 +0000)
ext/mysqlnd/mysqlnd.c

index 822bc42841871d7801fcd3eb285515336a80b126..3e48550bf899f9ec05ebeb0714ad3cbce42c1f2f 100644 (file)
@@ -1299,6 +1299,7 @@ MYSQLND_METHOD(mysqlnd_conn, select_db)(MYSQLND * const conn,
                        pefree(conn->connect_or_select_db, conn->persistent);
                }
                conn->connect_or_select_db = pestrndup(db, db_len, conn->persistent);
+               conn->connect_or_select_db_len = db_len;
        }
        DBG_RETURN(ret);
 }