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

Function interpret_func_volatility

src/backend/commands/functioncmds.c:689–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689static char
690interpret_func_volatility(DefElem *defel)
691{
692 char *str = strVal(defel->arg);
693
694 if (strcmp(str, "immutable") == 0)
695 return PROVOLATILE_IMMUTABLE;
696 else if (strcmp(str, "stable") == 0)
697 return PROVOLATILE_STABLE;
698 else if (strcmp(str, "volatile") == 0)
699 return PROVOLATILE_VOLATILE;
700 else
701 {
702 elog(ERROR, "invalid volatility \"%s\"", str);
703 return 0; /* keep compiler quiet */
704 }
705}
706
707static char
708interpret_data_access(DefElem *defel)

Callers 2

AlterFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected