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()
290 H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_preparer()
295 if (H->last_err) { in oci_handle_preparer()
296 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_preparer()
307 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
309 if (!H->last_err) { in oci_handle_preparer()
311 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
337 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_doer()
338 if (H->last_err) { in oci_handle_doer()
339 H->last_err = oci_drv_error("OCIStmtPrepare"); in oci_handle_doer()
344 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &stmt_type, 0, OCI_ATTR_STMT_TYPE, H->err); in oci_handle_doer()
354 H->last_err = OCIStmtExecute(H->svc, stmt, H->err, 1, 0, NULL, NULL, in oci_handle_doer()
357 if (H->last_err) { in oci_handle_doer()
358 H->last_err = oci_drv_error("OCIStmtExecute"); in oci_handle_doer()
361 H->last_err = OCIAttrGet(stmt, OCI_HTYPE_STMT, &rowcount, 0, OCI_ATTR_ROW_COUNT, H->err); in oci_handle_doer()
419 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_commit()
421 if (H->last_err) { in oci_handle_commit()
422 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_commit()
433 H->last_err = OCITransRollback(H->svc, H->err, 0); in oci_handle_rollback()
435 if (H->last_err) { in oci_handle_rollback()
436 H->last_err = oci_drv_error("OCITransRollback"); in oci_handle_rollback()
450 H->last_err = OCITransCommit(H->svc, H->err, 0); in oci_handle_set_attribute()
452 if (H->last_err) { in oci_handle_set_attribute()
453 H->last_err = oci_drv_error("OCITransCommit"); in oci_handle_set_attribute()
557 H->last_err = OCIPing (H->svc, H->err, OCI_DEFAULT); in pdo_oci_check_liveness()
560 …H->last_err = OCIServerVersion (H->svc, H->err, (text *)version, sizeof(version), OCI_HTYPE_SVCCTX… in pdo_oci_check_liveness()
562 if (H->last_err == OCI_SUCCESS) { in pdo_oci_check_liveness()
631 H->last_err = OCIServerAttach(H->server, H->err, (text*)vars[1].optval, in pdo_oci_handle_factory()
634 if (H->last_err) { in pdo_oci_handle_factory()
642 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->svc, OCI_HTYPE_SVCCTX, 0, NULL); in pdo_oci_handle_factory()
643 if (H->last_err) { in pdo_oci_handle_factory()
648 H->last_err = OCIHandleAlloc(H->env, (dvoid**)&H->session, OCI_HTYPE_SESSION, 0, NULL); in pdo_oci_handle_factory()
649 if (H->last_err) { in pdo_oci_handle_factory()
655 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->server, 0, OCI_ATTR_SERVER, H->err); in pdo_oci_handle_factory()
656 if (H->last_err) { in pdo_oci_handle_factory()
663 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
666 if (H->last_err) { in pdo_oci_handle_factory()
674 H->last_err = OCIAttrSet(H->session, OCI_HTYPE_SESSION, in pdo_oci_handle_factory()
677 if (H->last_err) { in pdo_oci_handle_factory()
684 H->last_err = OCISessionBegin(H->svc, H->err, H->session, OCI_CRED_RDBMS, OCI_DEFAULT); in pdo_oci_handle_factory()
685 if (H->last_err) { in pdo_oci_handle_factory()
691 H->last_err = OCIAttrSet(H->svc, OCI_HTYPE_SVCCTX, H->session, 0, OCI_ATTR_SESSION, H->err); in pdo_oci_handle_factory()
692 if (H->last_err) { in pdo_oci_handle_factory()