Lines Matching refs:prefetch
32 static inline ub4 pdo_oci_sanitize_prefetch(long prefetch);
247 ub4 prefetch; in oci_handle_preparer() local
297 …prefetch = H->prefetch; /* Note 0 is allowed so in future REF CURSORs can be used & then passed w… in oci_handle_preparer()
298 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
301 prefetch *= PDO_OCI_PREFETCH_ROWSIZE; in oci_handle_preparer()
302 H->last_err = OCIAttrSet(S->stmt, OCI_HTYPE_STMT, &prefetch, 0, in oci_handle_preparer()
457 H->prefetch = pdo_oci_sanitize_prefetch(lval); in oci_handle_set_attribute()
609 ZVAL_LONG(return_value, H->prefetch); in oci_handle_get_attribute()
696 H->prefetch = PDO_OCI_PREFETCH_DEFAULT; in pdo_oci_handle_factory()
831 static inline ub4 pdo_oci_sanitize_prefetch(long prefetch) /* {{{ */ in pdo_oci_sanitize_prefetch() argument
833 if (prefetch < 0) { in pdo_oci_sanitize_prefetch()
834 prefetch = 0; in pdo_oci_sanitize_prefetch()
835 } else if (prefetch > UB4MAXVAL / PDO_OCI_PREFETCH_ROWSIZE) { in pdo_oci_sanitize_prefetch()
836 prefetch = PDO_OCI_PREFETCH_DEFAULT; in pdo_oci_sanitize_prefetch()
838 return ((ub4)prefetch); in pdo_oci_sanitize_prefetch()