Lines Matching refs:P

201 	pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data;  in oci_bind_input_cb()  local
209 *indpp = &P->indicator; in oci_bind_input_cb()
216 if (P->thing) { in oci_bind_input_cb()
217 *bufpp = P->thing; in oci_bind_input_cb()
221 P->indicator = -1; /* NULL */ in oci_bind_input_cb()
224 } else if (!P->thing) { in oci_bind_input_cb()
238 pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data; in oci_bind_output_cb() local
252 P->actual_len = sizeof(OCILobLocator*); in oci_bind_output_cb()
253 *bufpp = P->thing; in oci_bind_output_cb()
254 *alenpp = &P->actual_len; in oci_bind_output_cb()
256 *rcodepp = &P->retcode; in oci_bind_output_cb()
257 *indpp = &P->indicator; in oci_bind_output_cb()
269 P->used_for_output = 1; in oci_bind_output_cb()
271 P->actual_len = (ub4) Z_STRLEN_P(parameter); in oci_bind_output_cb()
272 *alenpp = &P->actual_len; in oci_bind_output_cb()
275 *rcodepp = &P->retcode; in oci_bind_output_cb()
276 *indpp = &P->indicator; in oci_bind_output_cb()
287 pdo_oci_bound_param *P; in oci_stmt_param_hook() local
296 P = (pdo_oci_bound_param*)param->driver_data; in oci_stmt_param_hook()
306 P = param->driver_data; in oci_stmt_param_hook()
307 if (P && P->thing) { in oci_stmt_param_hook()
308 OCI_TEMPLOB_CLOSE(S->H->env, S->H->svc, S->H->err, P->thing); in oci_stmt_param_hook()
309 OCIDescriptorFree(P->thing, OCI_DTYPE_LOB); in oci_stmt_param_hook()
310 P->thing = NULL; in oci_stmt_param_hook()
311 efree(P); in oci_stmt_param_hook()
313 else if (P) { in oci_stmt_param_hook()
314 efree(P); in oci_stmt_param_hook()
319 P = (pdo_oci_bound_param*)ecalloc(1, sizeof(pdo_oci_bound_param)); in oci_stmt_param_hook()
320 param->driver_data = P; in oci_stmt_param_hook()
329 P->oci_type = SQLT_BLOB; in oci_stmt_param_hook()
335 P->oci_type = SQLT_CHR; in oci_stmt_param_hook()
345 &P->bind, S->err, (text*)param->name->val, in oci_stmt_param_hook()
346 (sb4) param->name->len, 0, value_sz, P->oci_type, in oci_stmt_param_hook()
347 &P->indicator, 0, &P->retcode, 0, 0, in oci_stmt_param_hook()
351 &P->bind, S->err, ((ub4)param->paramno)+1, in oci_stmt_param_hook()
352 0, value_sz, P->oci_type, in oci_stmt_param_hook()
353 &P->indicator, 0, &P->retcode, 0, 0, in oci_stmt_param_hook()
357 STMT_CALL(OCIBindDynamic, (P->bind, in oci_stmt_param_hook()
365 P->indicator = 0; in oci_stmt_param_hook()
366 P->used_for_output = 0; in oci_stmt_param_hook()
369 STMT_CALL(OCIDescriptorAlloc, (S->H->env, &P->thing, OCI_DTYPE_LOB, 0, NULL)); in oci_stmt_param_hook()
370 STMT_CALL(OCIAttrSet, (P->thing, OCI_DTYPE_LOB, &empty, 0, OCI_ATTR_LOBEMPTY, S->err)); in oci_stmt_param_hook()
377 if (P->used_for_output) { in oci_stmt_param_hook()
378 if (P->indicator == -1) { in oci_stmt_param_hook()
387 Z_STR_P(parameter) = zend_string_init(Z_STRVAL_P(parameter), P->actual_len, 1); in oci_stmt_param_hook()
389 } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB && P->thing) { in oci_stmt_param_hook()
397 stm = oci_create_lob_stream(&stmt->database_object_handle, stmt, (OCILobLocator*)P->thing); in oci_stmt_param_hook()
399 OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); in oci_stmt_param_hook()
410 OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); in oci_stmt_param_hook()
420 OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, in oci_stmt_param_hook()
429 OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); in oci_stmt_param_hook()
430 OCILobFlushBuffer(S->H->svc, S->err, (OCILobLocator*)P->thing, 0); in oci_stmt_param_hook()
436 OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); in oci_stmt_param_hook()
439 OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, in oci_stmt_param_hook()
446 OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); in oci_stmt_param_hook()
449 OCI_TEMPLOB_CLOSE(S->H->env, S->H->svc, S->H->err, P->thing); in oci_stmt_param_hook()
450 OCIDescriptorFree(P->thing, OCI_DTYPE_LOB); in oci_stmt_param_hook()
451 P->thing = NULL; in oci_stmt_param_hook()