MCPcopy Create free account
hub / github.com/dolthub/doltgresql / SQLStandardName

Method SQLStandardName

postgres/parser/types/types.go:1411–1413  ·  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

1409//
1410// SELECT format_type(pg_typeof(1::int)::regtype, NULL)
1411func (t *T) SQLStandardName() string {
1412 return t.SQLStandardNameWithTypmod(false, 0)
1413}
1414
1415var telemetryNameReplaceRegex = regexp.MustCompile("[^a-zA-Z0-9]")
1416

Callers 9

NameMethod · 0.95
InformationSchemaNameMethod · 0.95
FormatMethod · 0.80
initFunction · 0.80
getDataAndUdtTypeFunction · 0.80
format_type.goFile · 0.80
regtype.goFile · 0.80

Calls 1

Tested by

no test coverage detected