Lines Matching refs:param

176 		struct pdo_bound_param_data *param;  in odbc_stmt_execute()  local
178 rc = SQLParamData(S->stmt, (SQLPOINTER*)&param); in odbc_stmt_execute()
184 P = (pdo_odbc_param*)param->driver_data; in odbc_stmt_execute()
185 if (Z_TYPE_P(param->parameter) != IS_RESOURCE) { in odbc_stmt_execute()
188 convert_to_string(param->parameter); in odbc_stmt_execute()
191 Z_STRVAL_P(param->parameter), in odbc_stmt_execute()
192 Z_STRLEN_P(param->parameter), in odbc_stmt_execute()
195 SQLPutData(S->stmt, Z_STRVAL_P(param->parameter), in odbc_stmt_execute()
196 Z_STRLEN_P(param->parameter)); in odbc_stmt_execute()
215 php_stream_from_zval_no_verify(stm, &param->parameter); in odbc_stmt_execute()
276 static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, in odbc_stmt_param_hook() argument
286 if (param->is_param) { in odbc_stmt_param_hook()
290 P = param->driver_data; in odbc_stmt_param_hook()
299 switch (PDO_PARAM_TYPE(param->param_type)) { in odbc_stmt_param_hook()
310 …rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
314 sqltype = PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB ? in odbc_stmt_param_hook()
321 if (param->max_value_len > 0) { in odbc_stmt_param_hook()
322 precision = param->max_value_len; in odbc_stmt_param_hook()
332 param->driver_data = P; in odbc_stmt_param_hook()
343 if ((param->param_type & PDO_PARAM_INPUT_OUTPUT) == PDO_PARAM_INPUT_OUTPUT) { in odbc_stmt_param_hook()
345 } else if (param->max_value_len <= 0) { in odbc_stmt_param_hook()
352 if (PDO_PARAM_TYPE(param->param_type) != PDO_PARAM_NULL) { in odbc_stmt_param_hook()
354 P->len = param->max_value_len > 0 ? param->max_value_len : precision; in odbc_stmt_param_hook()
362 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB && P->paramtype != SQL_PARAM_INPUT) { in odbc_stmt_param_hook()
367 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
370 (SQLPOINTER)param : in odbc_stmt_param_hook()
384 P = param->driver_data; in odbc_stmt_param_hook()
385 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB) { in odbc_stmt_param_hook()
386 if (Z_TYPE_P(param->parameter) == IS_RESOURCE) { in odbc_stmt_param_hook()
390 php_stream_from_zval_no_verify(stm, &param->parameter); in odbc_stmt_param_hook()
429 convert_to_string(param->parameter); in odbc_stmt_param_hook()
431 P->len = Z_STRLEN_P(param->parameter); in odbc_stmt_param_hook()
432 memcpy(P->outbuf, Z_STRVAL_P(param->parameter), P->len); in odbc_stmt_param_hook()
434 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(param->parameter)); in odbc_stmt_param_hook()
437 …} else if (Z_TYPE_P(param->parameter) == IS_NULL || PDO_PARAM_TYPE(param->param_type) == PDO_PARAM… in odbc_stmt_param_hook()
440 convert_to_string(param->parameter); in odbc_stmt_param_hook()
444 Z_STRVAL_P(param->parameter), in odbc_stmt_param_hook()
445 Z_STRLEN_P(param->parameter), in odbc_stmt_param_hook()
449 P->len = Z_STRLEN_P(param->parameter); in odbc_stmt_param_hook()
450 memcpy(P->outbuf, Z_STRVAL_P(param->parameter), P->len); in odbc_stmt_param_hook()
458 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(param->parameter)); in odbc_stmt_param_hook()
464 P = param->driver_data; in odbc_stmt_param_hook()
473 zval_dtor(param->parameter); in odbc_stmt_param_hook()
474 ZVAL_NULL(param->parameter); in odbc_stmt_param_hook()
477 convert_to_string(param->parameter); in odbc_stmt_param_hook()
491 Z_STRVAL_P(param->parameter) = erealloc(Z_STRVAL_P(param->parameter), srclen+1); in odbc_stmt_param_hook()
492 memcpy(Z_STRVAL_P(param->parameter), srcbuf, srclen); in odbc_stmt_param_hook()
493 Z_STRLEN_P(param->parameter) = srclen; in odbc_stmt_param_hook()
494 Z_STRVAL_P(param->parameter)[srclen] = '\0'; in odbc_stmt_param_hook() local