Lines Matching refs:last_err
208 H->last_err = OCIServerDetach(H->server, H->err, OCI_DEFAULT); in oci_handle_closer()
209 if (H->last_err) { in oci_handle_closer()
280 …H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, (ub4) sql_len, OCI_NTV_SYNTAX, OCI_DEFAU… in oci_handle_preparer()
285 if (H->last_err) { in oci_handle_preparer()
286 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_preparer()
296 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
298 if (!H->last_err) { in oci_handle_preparer()
300 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
325 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, (ub4) sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_doer()
326 if (H->last_err) { in oci_handle_doer()
327 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_doer()
332 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &stmt_type, 0, OCI_ATTR_STMT_TYPE, H->err); in oci_handle_doer()
342 H->last_err = OCIStmtExecute(H->svc, stmt, H->err, 1, 0, NULL, NULL, in oci_handle_doer()
345 if (H->last_err) { in oci_handle_doer()
346 H->last_err = oci_drv_error("OCIStmtExecute"); in oci_handle_doer()
349 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &rowcount, 0, OCI_ATTR_ROW_COUNT, H->err); in oci_handle_doer()
407 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_commit()
409 if (H->last_err) { in oci_handle_commit()
410 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_commit()
421 H->last_err = OCITransRollback(H->svc, H->err, 0); in oci_handle_rollback()
423 if (H->last_err) { in oci_handle_rollback()
424 H->last_err = oci_drv_error("OCITransRollback"); in oci_handle_rollback()
441 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_set_attribute()
443 if (H->last_err) { in oci_handle_set_attribute()
444 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_set_attribute()
466 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
469 if (H->last_err) { in oci_handle_set_attribute()
487 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
490 if (H->last_err) { in oci_handle_set_attribute()
508 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
511 if (H->last_err) { in oci_handle_set_attribute()
529 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
532 if (H->last_err) { in oci_handle_set_attribute()
547 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, in oci_handle_set_attribute()
550 if (H->last_err) { in oci_handle_set_attribute()
632 H->last_err = OCIAttrGet(H->svc, OCI_HTYPE_SVCCTX, in oci_handle_get_attribute()
635 if (H->last_err) { in oci_handle_get_attribute()
677 H->last_err = OCIPing (H->svc, H->err, OCI_DEFAULT); in pdo_oci_check_liveness()
680 …H->last_err = OCIServerVersion (H->svc, H->err, (text *)version, sizeof(version), OCI_HTYPE_SVCCTX… in pdo_oci_check_liveness()
682 if (H->last_err == OCI_SUCCESS) { in pdo_oci_check_liveness()
762 H->last_err = OCIServerAttach(H->server, H->err, (text*)vars[1].optval, in pdo_oci_handle_factory()
765 if (H->last_err) { in pdo_oci_handle_factory()
773 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->svc, OCI_HTYPE_SVCCTX, 0, NULL); in pdo_oci_handle_factory()
774 if (H->last_err) { in pdo_oci_handle_factory()
779 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->session, OCI_HTYPE_SESSION, 0, NULL); in pdo_oci_handle_factory()
780 if (H->last_err) { in pdo_oci_handle_factory()
786 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->server, 0, OCI_ATTR_SERVER, H->err); in pdo_oci_handle_factory()
787 if (H->last_err) { in pdo_oci_handle_factory()
798 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
801 if (H->last_err) { in pdo_oci_handle_factory()
813 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
816 if (H->last_err) { in pdo_oci_handle_factory()
823 H->last_err = OCISessionBegin(H->svc, H->err, H->session, OCI_CRED_RDBMS, OCI_DEFAULT); in pdo_oci_handle_factory()
824 if (H->last_err) { in pdo_oci_handle_factory()
830 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->session, 0, OCI_ATTR_SESSION, H->err); in pdo_oci_handle_factory()
831 if (H->last_err) { in pdo_oci_handle_factory()
837 H->last_err = OCINlsNumericInfoGet(H->env, H->err, &H->max_char_width, OCI_NLS_CHARSET_MAXBYTESZ); in pdo_oci_handle_factory()
838 if (H->last_err) { in pdo_oci_handle_factory()