* Error context callback for handling errors in the SQL query passed as * argument to gp_dump_query_oids() */
| 63 | * argument to gp_dump_query_oids() |
| 64 | */ |
| 65 | static void |
| 66 | sql_query_parse_error_callback(void *arg) |
| 67 | { |
| 68 | const char *query_text = (const char *) arg; |
| 69 | int syntaxerrposition = geterrposition(); |
| 70 | |
| 71 | /* |
| 72 | * The error is not in the original query. Report the query that was |
| 73 | * passed as argument as an "internal query", and the position in it. |
| 74 | */ |
| 75 | errposition(0); |
| 76 | internalerrposition(syntaxerrposition); |
| 77 | internalerrquery(query_text); |
| 78 | } |
| 79 | |
| 80 | void |
| 81 | add_proc_oids_for_dump(Oid funcid) |
nothing calls this directly
no test coverage detected