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

Function LCS_asString

src/backend/parser/analyze.c:3609–3627  ·  view source on GitHub ↗

* Produce a string representation of a LockClauseStrength value. * This should only be applied to valid values (not LCS_NONE). */

Source from the content-addressed store, hash-verified

3607 * This should only be applied to valid values (not LCS_NONE).
3608 */
3609const char *
3610LCS_asString(LockClauseStrength strength)
3611{
3612 switch (strength)
3613 {
3614 case LCS_NONE:
3615 Assert(false);
3616 break;
3617 case LCS_FORKEYSHARE:
3618 return "FOR KEY SHARE";
3619 case LCS_FORSHARE:
3620 return "FOR SHARE";
3621 case LCS_FORNOKEYUPDATE:
3622 return "FOR NO KEY UPDATE";
3623 case LCS_FORUPDATE:
3624 return "FOR UPDATE";
3625 }
3626 return "FOR some"; /* shouldn't happen */
3627}
3628
3629/*
3630 * Check for features that are not supported with FOR [KEY] UPDATE/SHARE.

Callers 8

transformValuesClauseFunction · 0.85
CheckSelectLockingFunction · 0.85
transformLockingClauseFunction · 0.85
make_outerjoininfoFunction · 0.85
grouping_plannerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected