Lines Matching refs:param
196 struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx; in oci_bind_input_cb() local
197 pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data; in oci_bind_input_cb()
200 ZEND_ASSERT(param); in oci_bind_input_cb()
204 if (Z_ISREF(param->parameter)) in oci_bind_input_cb()
205 parameter = Z_REFVAL(param->parameter); in oci_bind_input_cb()
207 parameter = ¶m->parameter; in oci_bind_input_cb()
232 struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx; in oci_bind_output_cb() local
233 pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data; in oci_bind_output_cb()
236 ZEND_ASSERT(param); in oci_bind_output_cb()
238 if (Z_ISREF(param->parameter)) { in oci_bind_output_cb()
239 parameter = Z_REFVAL(param->parameter); in oci_bind_output_cb()
241 parameter = ¶m->parameter; in oci_bind_output_cb()
244 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB) { in oci_bind_output_cb()
260 Z_STR_P(parameter) = zend_string_alloc(param->max_value_len, 1); in oci_bind_output_cb()
273 static int oci_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, enum pdo_param… in oci_stmt_param_hook() argument
278 if (param->is_param) { in oci_stmt_param_hook()
283 if (Z_ISREF(param->parameter)) in oci_stmt_param_hook()
284 parameter = Z_REFVAL(param->parameter); in oci_stmt_param_hook()
286 parameter = ¶m->parameter; in oci_stmt_param_hook()
288 P = (pdo_oci_bound_param*)param->driver_data; in oci_stmt_param_hook()
298 P = param->driver_data; in oci_stmt_param_hook()
312 param->driver_data = P; in oci_stmt_param_hook()
315 switch (PDO_PARAM_TYPE(param->param_type)) { in oci_stmt_param_hook()
328 value_sz = (sb4) param->max_value_len; in oci_stmt_param_hook()
329 if (param->max_value_len == 0) { in oci_stmt_param_hook()
335 if (param->name) { in oci_stmt_param_hook()
337 &P->bind, S->err, (text*)param->name->val, in oci_stmt_param_hook()
338 (sb4) param->name->len, 0, value_sz, P->oci_type, in oci_stmt_param_hook()
343 &P->bind, S->err, ((ub4)param->paramno)+1, in oci_stmt_param_hook()
351 param, oci_bind_input_cb, in oci_stmt_param_hook()
352 param, oci_bind_output_cb)); in oci_stmt_param_hook()
359 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB) { in oci_stmt_param_hook()
381 } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB && P->thing) { in oci_stmt_param_hook()
516 OCIParam *param = NULL; in oci_stmt_describe() local
524 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)¶m, colno+1)); in oci_stmt_describe()
528 (param, OCI_DTYPE_PARAM, &dtype, 0, OCI_ATTR_DATA_TYPE, S->err)); in oci_stmt_describe()
532 (param, OCI_DTYPE_PARAM, &data_size, 0, OCI_ATTR_DATA_SIZE, S->err)); in oci_stmt_describe()
536 (param, OCI_DTYPE_PARAM, &precis, 0, OCI_ATTR_PRECISION, S->err)); in oci_stmt_describe()
540 (param, OCI_DTYPE_PARAM, &colname, &namelen, OCI_ATTR_NAME, S->err)); in oci_stmt_describe()
792 OCIParam *param = NULL; in oci_stmt_col_meta() local
809 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)¶m, colno+1)); in oci_stmt_col_meta()
813 (param, OCI_DTYPE_PARAM, &dtype, 0, OCI_ATTR_DATA_TYPE, S->err)); in oci_stmt_col_meta()
817 (param, OCI_DTYPE_PARAM, &precis, 0, OCI_ATTR_PRECISION, S->err)); in oci_stmt_col_meta()
821 (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); in oci_stmt_col_meta()
826 (param, OCI_DTYPE_PARAM, &charset_form, 0, OCI_ATTR_CHARSET_FORM, S->err)); in oci_stmt_col_meta()
965 (param, OCI_DTYPE_PARAM, &isnull, 0, OCI_ATTR_IS_NULL, S->err)); in oci_stmt_col_meta()
987 OCIDescriptorFree(param, OCI_DTYPE_PARAM); in oci_stmt_col_meta()