Lines Matching refs:param
189 struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx; in oci_bind_input_cb() local
190 pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data; in oci_bind_input_cb()
193 if (!param || !param->parameter) { in oci_bind_input_cb()
203 } else if (ZVAL_IS_NULL(param->parameter)) { in oci_bind_input_cb()
210 convert_to_string(param->parameter); in oci_bind_input_cb()
211 *bufpp = Z_STRVAL_P(param->parameter); in oci_bind_input_cb()
212 *alenp = Z_STRLEN_P(param->parameter); in oci_bind_input_cb()
221 struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx; in oci_bind_output_cb() local
222 pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data; in oci_bind_output_cb()
225 if (!param || !param->parameter) { in oci_bind_output_cb()
230 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB) { in oci_bind_output_cb()
240 if (Z_TYPE_P(param->parameter) == IS_OBJECT || Z_TYPE_P(param->parameter) == IS_RESOURCE) { in oci_bind_output_cb()
244 convert_to_string(param->parameter); in oci_bind_output_cb()
245 zval_dtor(param->parameter); in oci_bind_output_cb()
247 Z_STRLEN_P(param->parameter) = param->max_value_len; in oci_bind_output_cb()
248 Z_STRVAL_P(param->parameter) = ecalloc(1, Z_STRLEN_P(param->parameter)+1); in oci_bind_output_cb()
251 P->actual_len = Z_STRLEN_P(param->parameter); in oci_bind_output_cb()
253 *bufpp = Z_STRVAL_P(param->parameter); in oci_bind_output_cb()
261 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
266 if (param->is_param) { in oci_stmt_param_hook()
270 P = (pdo_oci_bound_param*)param->driver_data; in oci_stmt_param_hook()
280 P = param->driver_data; in oci_stmt_param_hook()
288 param->driver_data = P; in oci_stmt_param_hook()
291 switch (PDO_PARAM_TYPE(param->param_type)) { in oci_stmt_param_hook()
304 value_sz = param->max_value_len; in oci_stmt_param_hook()
305 if (param->max_value_len == 0) { in oci_stmt_param_hook()
311 if (param->name) { in oci_stmt_param_hook()
313 &P->bind, S->err, (text*)param->name, in oci_stmt_param_hook()
314 param->namelen, 0, value_sz, P->oci_type, in oci_stmt_param_hook()
319 &P->bind, S->err, param->paramno+1, in oci_stmt_param_hook()
327 param, oci_bind_input_cb, in oci_stmt_param_hook()
328 param, oci_bind_output_cb)); in oci_stmt_param_hook()
335 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB) { in oci_stmt_param_hook()
348 if (Z_TYPE_P(param->parameter) == IS_STRING in oci_stmt_param_hook()
350 && Z_STRVAL_P(param->parameter) != empty_string in oci_stmt_param_hook()
354 *Z_STRVAL_P(param->parameter) = '\0'; in oci_stmt_param_hook()
356 zval_dtor(param->parameter); in oci_stmt_param_hook()
357 ZVAL_NULL(param->parameter); in oci_stmt_param_hook()
358 } else if (Z_TYPE_P(param->parameter) == IS_STRING in oci_stmt_param_hook()
360 && Z_STRVAL_P(param->parameter) != empty_string in oci_stmt_param_hook()
363 Z_STRLEN_P(param->parameter) = P->actual_len; in oci_stmt_param_hook()
364 Z_STRVAL_P(param->parameter) = erealloc(Z_STRVAL_P(param->parameter), P->actual_len+1); in oci_stmt_param_hook()
365 Z_STRVAL_P(param->parameter)[P->actual_len] = '\0'; in oci_stmt_param_hook() local
367 } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB && P->thing) { in oci_stmt_param_hook()
370 if (Z_TYPE_P(param->parameter) == IS_NULL) { in oci_stmt_param_hook()
378 php_stream_to_zval(stm, param->parameter); in oci_stmt_param_hook()
387 php_stream_from_zval_no_verify(stm, ¶m->parameter); in oci_stmt_param_hook()
410 } else if (Z_TYPE_P(param->parameter) == IS_STRING) { in oci_stmt_param_hook()
412 consume = Z_STRVAL_P(param->parameter); in oci_stmt_param_hook()
413 n = Z_STRLEN_P(param->parameter); in oci_stmt_param_hook()
507 OCIParam *param = NULL; in oci_stmt_describe() local
515 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)¶m, colno+1)); in oci_stmt_describe()
519 (param, OCI_DTYPE_PARAM, &dtype, 0, OCI_ATTR_DATA_TYPE, S->err)); in oci_stmt_describe()
523 (param, OCI_DTYPE_PARAM, &data_size, 0, OCI_ATTR_DATA_SIZE, S->err)); in oci_stmt_describe()
527 (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); in oci_stmt_describe()
531 (param, OCI_DTYPE_PARAM, &precis, 0, OCI_ATTR_PRECISION, S->err)); in oci_stmt_describe()
535 (param, OCI_DTYPE_PARAM, &colname, &namelen, OCI_ATTR_NAME, S->err)); in oci_stmt_describe()