* Parser setup hook for parsing a SQL function body. */
| 355 | * Parser setup hook for parsing a SQL function body. |
| 356 | */ |
| 357 | void |
| 358 | sql_fn_parser_setup(struct ParseState *pstate, SQLFunctionParseInfoPtr pinfo) |
| 359 | { |
| 360 | pstate->p_pre_columnref_hook = NULL; |
| 361 | pstate->p_post_columnref_hook = sql_fn_post_column_ref; |
| 362 | pstate->p_paramref_hook = sql_fn_param_ref; |
| 363 | /* no need to use p_coerce_param_hook */ |
| 364 | pstate->p_ref_hook_state = (void *) pinfo; |
| 365 | } |
| 366 | |
| 367 | /* |
| 368 | * sql_fn_post_column_ref parser callback for ColumnRefs |
no outgoing calls
no test coverage detected