Lines Matching refs:param
176 struct pdo_bound_param_data *param; in odbc_stmt_execute() local
178 rc = SQLParamData(S->stmt, (SQLPOINTER*)¶m); in odbc_stmt_execute()
185 P = (pdo_odbc_param*)param->driver_data; in odbc_stmt_execute()
186 if (Z_ISREF(param->parameter)) { in odbc_stmt_execute()
187 parameter = Z_REFVAL(param->parameter); in odbc_stmt_execute()
189 parameter = ¶m->parameter; in odbc_stmt_execute()
282 static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, in odbc_stmt_param_hook() argument
293 if (param->is_param) { in odbc_stmt_param_hook()
303 P = param->driver_data; in odbc_stmt_param_hook()
312 switch (PDO_PARAM_TYPE(param->param_type)) { in odbc_stmt_param_hook()
323 …rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
327 sqltype = PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB ? in odbc_stmt_param_hook()
334 if (param->max_value_len > 0) { in odbc_stmt_param_hook()
335 precision = param->max_value_len; in odbc_stmt_param_hook()
345 param->driver_data = P; in odbc_stmt_param_hook()
356 if ((param->param_type & PDO_PARAM_INPUT_OUTPUT) == PDO_PARAM_INPUT_OUTPUT) { in odbc_stmt_param_hook()
358 } else if (param->max_value_len <= 0) { in odbc_stmt_param_hook()
365 if (PDO_PARAM_TYPE(param->param_type) != PDO_PARAM_NULL) { in odbc_stmt_param_hook()
367 P->len = param->max_value_len > 0 ? param->max_value_len : precision; in odbc_stmt_param_hook()
375 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB && P->paramtype != SQL_PARAM_INPUT) { in odbc_stmt_param_hook()
380 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
383 (SQLPOINTER)param : in odbc_stmt_param_hook()
397 P = param->driver_data; in odbc_stmt_param_hook()
398 if (!Z_ISREF(param->parameter)) { in odbc_stmt_param_hook()
399 parameter = ¶m->parameter; in odbc_stmt_param_hook()
401 parameter = Z_REFVAL(param->parameter); in odbc_stmt_param_hook()
404 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_LOB) { in odbc_stmt_param_hook()
456 …} else if (Z_TYPE_P(parameter) == IS_NULL || PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL) { in odbc_stmt_param_hook()
483 P = param->driver_data; in odbc_stmt_param_hook()
490 if (Z_ISREF(param->parameter)) { in odbc_stmt_param_hook()
491 parameter = Z_REFVAL(param->parameter); in odbc_stmt_param_hook()
493 parameter = ¶m->parameter; in odbc_stmt_param_hook()