MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / SQLStandardName

Method SQLStandardName

pkg/sql/types/types.go:1113–1115  ·  view source on GitHub ↗

SQLStandardName returns the type's name as it is specified in the SQL standard (or by Postgres for any non-standard types). This can be looked up for any type in Postgres using a query similar to this: SELECT format_type(pg_typeof(1::int)::regtype, NULL)

()

Source from the content-addressed store, hash-verified

1111// SELECT format_type(pg_typeof(1::int)::regtype, NULL)
1112//
1113func (t *T) SQLStandardName() string {
1114 return t.SQLStandardNameWithTypmod(false, 0)
1115}
1116
1117//var telemetryNameReplaceRegex = regexp.MustCompile("[^a-zA-Z0-9]")
1118

Callers 6

NameMethod · 0.95
InformationSchemaNameMethod · 0.95
FormatMethod · 0.80
NewDefaultDatumFunction · 0.80
PerformCastFunction · 0.80

Calls 1

Tested by

no test coverage detected