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

Function LookupCollation

src/backend/parser/parse_type.c:514–529  ·  view source on GitHub ↗

* LookupCollation * * Look up collation by name, return OID, with support for error location. */

Source from the content-addressed store, hash-verified

512 * Look up collation by name, return OID, with support for error location.
513 */
514Oid
515LookupCollation(ParseState *pstate, List *collnames, int location)
516{
517 Oid colloid;
518 ParseCallbackState pcbstate;
519
520 if (pstate)
521 setup_parser_errposition_callback(&pcbstate, pstate, location);
522
523 colloid = get_collation_oid(collnames, false);
524
525 if (pstate)
526 cancel_parser_errposition_callback(&pcbstate);
527
528 return colloid;
529}
530
531/*
532 * GetColumnDefCollation

Callers 4

transformColumnTypeFunction · 0.85
transformCollateClauseFunction · 0.85
GetColumnDefCollationFunction · 0.85

Tested by

no test coverage detected