Lines Matching refs:prefetch
30 static inline ub4 pdo_oci_sanitize_prefetch(long prefetch);
241 ub4 prefetch; in oci_handle_preparer() local
289 …prefetch = H->prefetch; /* Note 0 is allowed so in future REF CURSORs can be used & then passed w… in oci_handle_preparer()
290 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
293 prefetch *= PDO_OCI_PREFETCH_ROWSIZE; in oci_handle_preparer()
294 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
463 H->prefetch = pdo_oci_sanitize_prefetch(lval); in oci_handle_set_attribute()
636 ZVAL_LONG(return_value, H->prefetch); in oci_handle_get_attribute()
746 H->prefetch = PDO_OCI_PREFETCH_DEFAULT; in pdo_oci_handle_factory()
886 static inline ub4 pdo_oci_sanitize_prefetch(long prefetch) /* {{{ */ in pdo_oci_sanitize_prefetch() argument
888 if (prefetch < 0) { in pdo_oci_sanitize_prefetch()
889 prefetch = 0; in pdo_oci_sanitize_prefetch()
890 } else if (prefetch > UB4MAXVAL / PDO_OCI_PREFETCH_ROWSIZE) { in pdo_oci_sanitize_prefetch()
891 prefetch = PDO_OCI_PREFETCH_DEFAULT; in pdo_oci_sanitize_prefetch()
893 return ((ub4)prefetch); in pdo_oci_sanitize_prefetch()