MCPcopy Create free account
hub / github.com/apache/cloudberry / is_branching_command

Function is_branching_command

src/bin/psql/command.c:2973–2980  ·  view source on GitHub ↗

* Return true if the command given is a branching command. */

Source from the content-addressed store, hash-verified

2971 * Return true if the command given is a branching command.
2972 */
2973static bool
2974is_branching_command(const char *cmd)
2975{
2976 return (strcmp(cmd, "if") == 0 ||
2977 strcmp(cmd, "elif") == 0 ||
2978 strcmp(cmd, "else") == 0 ||
2979 strcmp(cmd, "endif") == 0);
2980}
2981
2982/*
2983 * Prepare to possibly restore query buffer to its current state

Callers 1

exec_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected