]> granicus.if.org Git - php/commitdiff
more method table adjustments.
authorWez Furlong <wez@php.net>
Thu, 23 Sep 2004 20:43:11 +0000 (20:43 +0000)
committerWez Furlong <wez@php.net>
Thu, 23 Sep 2004 20:43:11 +0000 (20:43 +0000)
mysql driver needs work with the error message stuff.
Other drivers need a bit more auditing...

ext/pdo_firebird/firebird_driver.c
ext/pdo_mysql/mysql_driver.c
ext/pdo_oci/oci_driver.c
ext/pdo_odbc/odbc_driver.c
ext/pdo_pgsql/pgsql_driver.c

index 251e80ef5f7124ed6eca91a95e1e2e280cbd10d6..f34b8247f9afb5a73e5086ba3f74126b2961a728 100644 (file)
@@ -582,6 +582,7 @@ static struct pdo_dbh_methods firebird_methods = { /* {{{ */
        NULL, /* last_id not supported */
        pdo_firebird_fetch_error_func,
        firebird_handle_get_attribute,
+       NULL /* check_liveness */
 };
 /* }}} */
 
index 783a6c7e6355411f97aa826e40c7584522d21d62..bbad7438624adfc186a00ce3c960b87e56f6c81d 100755 (executable)
@@ -152,7 +152,7 @@ static int mysql_handle_closer(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */
                        efree(H->einfo.errmsg);
                        H->einfo.errmsg = NULL;
                }
-               efree(H);
+               pefree(H, dbh->is_persistent);
                dbh->driver_data = NULL;
        }
        return 0;
index 0793a32e7a4857998c42704be93d1065d63a40da..353ccf3ed2bab2d63d6172a980115389b409b25e 100755 (executable)
@@ -346,6 +346,8 @@ static struct pdo_dbh_methods oci_methods = {
        oci_handle_set_attribute,
        NULL,
        pdo_oci_fetch_error_func,
+       NULL,   /* get_attr */
+       NULL    /* check_liveness */
 };
 
 static int pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) /* {{{ */
index e3d557bb0074b1e45423ebea2d520eeeb1a7ebb7..83d4342ce04d709b9ab94bde91715603d8e27fb2 100755 (executable)
@@ -299,6 +299,7 @@ static struct pdo_dbh_methods odbc_methods = {
        NULL,   /* last id */
        pdo_odbc_fetch_error_func,
        NULL,   /* get attr */
+       NULL,   /* check_liveness */
 };
 
 static int pdo_odbc_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) /* {{{ */
index f30b39ecc8f31d25f4aeab79dad67e2972af65f5..af8497e7215026b5a7c2950c137c9094424426cd 100644 (file)
@@ -310,7 +310,8 @@ static struct pdo_dbh_methods pgsql_methods = {
        NULL,
        pdo_pgsql_last_insert_id,
        pdo_pgsql_fetch_error_func,
-       pdo_pgsql_get_attribute
+       pdo_pgsql_get_attribute,
+       NULL    /* check_liveness */
 };
 
 static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) /* {{{ */