}
}
- add_next_index_long(info, einfo->errcode);
- add_next_index_string(info, einfo->errmsg, 1);
+ if (einfo->errcode) {
+ add_next_index_long(info, einfo->errcode);
+ add_next_index_string(info, einfo->errmsg, 1);
+ }
return 1;
}
NULL,
pdo_oci_fetch_error_func,
NULL, /* get_attr */
- NULL /* check_liveness */
+ NULL, /* check_liveness */
+ NULL /* get_driver_methods */
};
static int pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC) /* {{{ */