Lines Matching refs:last_err
218 H->last_err = OCIServerDetach(H->server, H->err, OCI_DEFAULT); in oci_handle_closer()
219 if (H->last_err) { in oci_handle_closer()
288 H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_preparer()
293 if (H->last_err) { in oci_handle_preparer()
294 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_preparer()
305 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
307 if (!H->last_err) { in oci_handle_preparer()
309 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
335 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_doer()
336 if (H->last_err) { in oci_handle_doer()
337 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_doer()
342 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &stmt_type, 0, OCI_ATTR_STMT_TYPE, H->err); in oci_handle_doer()
352 H->last_err = OCIStmtExecute(H->svc, stmt, H->err, 1, 0, NULL, NULL, in oci_handle_doer()
355 if (H->last_err) { in oci_handle_doer()
356 H->last_err = oci_drv_error("OCIStmtExecute"); in oci_handle_doer()
359 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &rowcount, 0, OCI_ATTR_ROW_COUNT, H->err); in oci_handle_doer()
417 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_commit()
419 if (H->last_err) { in oci_handle_commit()
420 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_commit()
431 H->last_err = OCITransRollback(H->svc, H->err, 0); in oci_handle_rollback()
433 if (H->last_err) { in oci_handle_rollback()
434 H->last_err = oci_drv_error("OCITransRollback"); in oci_handle_rollback()
448 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_set_attribute()
450 if (H->last_err) { in oci_handle_set_attribute()
451 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_set_attribute()
553 H->last_err = OCIPing (H->svc, H->err, OCI_DEFAULT); in pdo_oci_check_liveness()
556 …H->last_err = OCIServerVersion (H->svc, H->err, (text *)version, sizeof(version), OCI_HTYPE_SVCCTX… in pdo_oci_check_liveness()
558 if (H->last_err == OCI_SUCCESS) { in pdo_oci_check_liveness()
627 H->last_err = OCIServerAttach(H->server, H->err, (text*)vars[1].optval, in pdo_oci_handle_factory()
630 if (H->last_err) { in pdo_oci_handle_factory()
638 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->svc, OCI_HTYPE_SVCCTX, 0, NULL); in pdo_oci_handle_factory()
639 if (H->last_err) { in pdo_oci_handle_factory()
644 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->session, OCI_HTYPE_SESSION, 0, NULL); in pdo_oci_handle_factory()
645 if (H->last_err) { in pdo_oci_handle_factory()
651 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->server, 0, OCI_ATTR_SERVER, H->err); in pdo_oci_handle_factory()
652 if (H->last_err) { in pdo_oci_handle_factory()
659 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
662 if (H->last_err) { in pdo_oci_handle_factory()
670 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
673 if (H->last_err) { in pdo_oci_handle_factory()
680 H->last_err = OCISessionBegin(H->svc, H->err, H->session, OCI_CRED_RDBMS, OCI_DEFAULT); in pdo_oci_handle_factory()
681 if (H->last_err) { in pdo_oci_handle_factory()
687 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->session, 0, OCI_ATTR_SESSION, H->err); in pdo_oci_handle_factory()
688 if (H->last_err) { in pdo_oci_handle_factory()