Lines Matching refs:prefetch
30 static inline ub4 pdo_oci_sanitize_prefetch(long prefetch);
245 ub4 prefetch; in oci_handle_preparer() local
295 …prefetch = H->prefetch; /* Note 0 is allowed so in future REF CURSORs can be used & then passed w… in oci_handle_preparer()
296 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
299 prefetch *= PDO_OCI_PREFETCH_ROWSIZE; in oci_handle_preparer()
300 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
455 H->prefetch = pdo_oci_sanitize_prefetch(lval); in oci_handle_set_attribute()
625 ZVAL_LONG(return_value, H->prefetch); in oci_handle_get_attribute()
734 H->prefetch = PDO_OCI_PREFETCH_DEFAULT; in pdo_oci_handle_factory()
869 static inline ub4 pdo_oci_sanitize_prefetch(long prefetch) /* {{{ */ in pdo_oci_sanitize_prefetch() argument
871 if (prefetch < 0) { in pdo_oci_sanitize_prefetch()
872 prefetch = 0; in pdo_oci_sanitize_prefetch()
873 } else if (prefetch > UB4MAXVAL / PDO_OCI_PREFETCH_ROWSIZE) { in pdo_oci_sanitize_prefetch()
874 prefetch = PDO_OCI_PREFETCH_DEFAULT; in pdo_oci_sanitize_prefetch()
876 return ((ub4)prefetch); in pdo_oci_sanitize_prefetch()