Lines Matching refs:last_err
206 H->last_err = OCIServerDetach(H->server, H->err, OCI_DEFAULT); in oci_handle_closer()
207 if (H->last_err) { in oci_handle_closer()
274 …H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*) ZSTR_VAL(sql), (ub4) ZSTR_LEN(sql), OCI_NTV_… in oci_handle_preparer()
279 if (H->last_err) { in oci_handle_preparer()
280 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_preparer()
290 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
292 if (!H->last_err) { in oci_handle_preparer()
294 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
319 …H->last_err = OCIStmtPrepare(stmt, H->err, (text*)ZSTR_VAL(sql), (ub4) ZSTR_LEN(sql), OCI_NTV_SYNT… in oci_handle_doer()
320 if (H->last_err) { in oci_handle_doer()
321 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_doer()
326 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &stmt_type, 0, OCI_ATTR_STMT_TYPE, H->err); in oci_handle_doer()
336 H->last_err = OCIStmtExecute(H->svc, stmt, H->err, 1, 0, NULL, NULL, in oci_handle_doer()
339 sword last_err = H->last_err; in oci_handle_doer() local
341 if (last_err) { in oci_handle_doer()
342 H->last_err = oci_drv_error("OCIStmtExecute"); in oci_handle_doer()
345 if (!last_err || last_err == OCI_SUCCESS_WITH_INFO) { in oci_handle_doer()
347 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &rowcount, 0, OCI_ATTR_ROW_COUNT, H->err); in oci_handle_doer()
406 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_commit()
408 if (H->last_err) { in oci_handle_commit()
409 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_commit()
420 H->last_err = OCITransRollback(H->svc, H->err, 0); in oci_handle_rollback()
422 if (H->last_err) { in oci_handle_rollback()
423 H->last_err = oci_drv_error("OCITransRollback"); in oci_handle_rollback()
445 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_set_attribute()
447 if (H->last_err) { in oci_handle_set_attribute()
448 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_set_attribute()
474 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
477 if (H->last_err) { in oci_handle_set_attribute()
495 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
498 if (H->last_err) { in oci_handle_set_attribute()
516 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
519 if (H->last_err) { in oci_handle_set_attribute()
537 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in oci_handle_set_attribute()
540 if (H->last_err) { in oci_handle_set_attribute()
558 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, in oci_handle_set_attribute()
561 if (H->last_err) { in oci_handle_set_attribute()
643 H->last_err = OCIAttrGet(H->svc, OCI_HTYPE_SVCCTX, in oci_handle_get_attribute()
646 if (H->last_err) { in oci_handle_get_attribute()
688 H->last_err = OCIPing (H->svc, H->err, OCI_DEFAULT); in pdo_oci_check_liveness()
691 …H->last_err = OCIServerVersion (H->svc, H->err, (text *)version, sizeof(version), OCI_HTYPE_SVCCTX… in pdo_oci_check_liveness()
693 if (H->last_err == OCI_SUCCESS) { in pdo_oci_check_liveness()
774 H->last_err = OCIServerAttach(H->server, H->err, (text*)vars[1].optval, in pdo_oci_handle_factory()
777 if (H->last_err) { in pdo_oci_handle_factory()
785 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->svc, OCI_HTYPE_SVCCTX, 0, NULL); in pdo_oci_handle_factory()
786 if (H->last_err) { in pdo_oci_handle_factory()
791 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->session, OCI_HTYPE_SESSION, 0, NULL); in pdo_oci_handle_factory()
792 if (H->last_err) { in pdo_oci_handle_factory()
798 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->server, 0, OCI_ATTR_SERVER, H->err); in pdo_oci_handle_factory()
799 if (H->last_err) { in pdo_oci_handle_factory()
810 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
813 if (H->last_err) { in pdo_oci_handle_factory()
825 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
828 if (H->last_err) { in pdo_oci_handle_factory()
835 H->last_err = OCISessionBegin(H->svc, H->err, H->session, OCI_CRED_RDBMS, OCI_DEFAULT); in pdo_oci_handle_factory()
836 if (H->last_err) { in pdo_oci_handle_factory()
841 if (H->last_err != OCI_SUCCESS_WITH_INFO) { in pdo_oci_handle_factory()
847 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->session, 0, OCI_ATTR_SESSION, H->err); in pdo_oci_handle_factory()
848 if (H->last_err) { in pdo_oci_handle_factory()
854 H->last_err = OCINlsNumericInfoGet(H->env, H->err, &H->max_char_width, OCI_NLS_CHARSET_MAXBYTESZ); in pdo_oci_handle_factory()
855 if (H->last_err) { in pdo_oci_handle_factory()