Lines Matching refs:P

199 	pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data;  in oci_bind_input_cb()  local
207 *indpp = &P->indicator; in oci_bind_input_cb()
214 if (P->thing) { in oci_bind_input_cb()
215 *bufpp = P->thing; in oci_bind_input_cb()
219 P->indicator = -1; /* NULL */ in oci_bind_input_cb()
222 } else if (!P->thing) { in oci_bind_input_cb()
236 pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data; in oci_bind_output_cb() local
250 P->actual_len = sizeof(OCILobLocator*); in oci_bind_output_cb()
251 *bufpp = P->thing; in oci_bind_output_cb()
252 *alenpp = &P->actual_len; in oci_bind_output_cb()
254 *rcodepp = &P->retcode; in oci_bind_output_cb()
255 *indpp = &P->indicator; in oci_bind_output_cb()
267 P->used_for_output = 1; in oci_bind_output_cb()
269 P->actual_len = (ub4) Z_STRLEN_P(parameter); in oci_bind_output_cb()
270 *alenpp = &P->actual_len; in oci_bind_output_cb()
273 *rcodepp = &P->retcode; in oci_bind_output_cb()
274 *indpp = &P->indicator; in oci_bind_output_cb()
285 pdo_oci_bound_param *P; in oci_stmt_param_hook() local
294 P = (pdo_oci_bound_param*)param->driver_data; in oci_stmt_param_hook()
304 P = param->driver_data; in oci_stmt_param_hook()
305 if (P && P->thing) { in oci_stmt_param_hook()
306 OCI_TEMPLOB_CLOSE(S->H->env, S->H->svc, S->H->err, P->thing); in oci_stmt_param_hook()
307 OCIDescriptorFree(P->thing, OCI_DTYPE_LOB); in oci_stmt_param_hook()
308 P->thing = NULL; in oci_stmt_param_hook()
309 efree(P); in oci_stmt_param_hook()
311 else if (P) { in oci_stmt_param_hook()
312 efree(P); in oci_stmt_param_hook()
317 P = (pdo_oci_bound_param*)ecalloc(1, sizeof(pdo_oci_bound_param)); in oci_stmt_param_hook()
318 param->driver_data = P; in oci_stmt_param_hook()
327 P->oci_type = SQLT_BLOB; in oci_stmt_param_hook()
333 P->oci_type = SQLT_CHR; in oci_stmt_param_hook()
343 &P->bind, S->err, (text*)param->name->val, in oci_stmt_param_hook()
344 (sb4) param->name->len, 0, value_sz, P->oci_type, in oci_stmt_param_hook()
345 &P->indicator, 0, &P->retcode, 0, 0, in oci_stmt_param_hook()
349 &P->bind, S->err, ((ub4)param->paramno)+1, in oci_stmt_param_hook()
350 0, value_sz, P->oci_type, in oci_stmt_param_hook()
351 &P->indicator, 0, &P->retcode, 0, 0, in oci_stmt_param_hook()
355 STMT_CALL(OCIBindDynamic, (P->bind, in oci_stmt_param_hook()
363 P->indicator = 0; in oci_stmt_param_hook()
364 P->used_for_output = 0; in oci_stmt_param_hook()
367 STMT_CALL(OCIDescriptorAlloc, (S->H->env, &P->thing, OCI_DTYPE_LOB, 0, NULL)); in oci_stmt_param_hook()
368 STMT_CALL(OCIAttrSet, (P->thing, OCI_DTYPE_LOB, &empty, 0, OCI_ATTR_LOBEMPTY, S->err)); in oci_stmt_param_hook()
375 if (P->used_for_output) { in oci_stmt_param_hook()
376 if (P->indicator == -1) { in oci_stmt_param_hook()
385 Z_STR_P(parameter) = zend_string_init(Z_STRVAL_P(parameter), P->actual_len, 1); in oci_stmt_param_hook()
387 } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB && P->thing) { in oci_stmt_param_hook()
395 stm = oci_create_lob_stream(&stmt->database_object_handle, stmt, (OCILobLocator*)P->thing); in oci_stmt_param_hook()
397 OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); in oci_stmt_param_hook()
408 OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); in oci_stmt_param_hook()
418 OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, in oci_stmt_param_hook()
427 OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); in oci_stmt_param_hook()
428 OCILobFlushBuffer(S->H->svc, S->err, (OCILobLocator*)P->thing, 0); in oci_stmt_param_hook()
434 OCILobOpen(S->H->svc, S->err, (OCILobLocator*)P->thing, OCI_LOB_READWRITE); in oci_stmt_param_hook()
437 OCILobWrite(S->H->svc, S->err, (OCILobLocator*)P->thing, in oci_stmt_param_hook()
444 OCILobClose(S->H->svc, S->err, (OCILobLocator*)P->thing); in oci_stmt_param_hook()
447 OCI_TEMPLOB_CLOSE(S->H->env, S->H->svc, S->H->err, P->thing); in oci_stmt_param_hook()
448 OCIDescriptorFree(P->thing, OCI_DTYPE_LOB); in oci_stmt_param_hook()
449 P->thing = NULL; in oci_stmt_param_hook()