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

Method SQLStandardName

pkg/sql/types/types.go:1737–1739  ·  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

1735//
1736// SELECT format_type(pg_typeof(1::int)::regtype, NULL)
1737func (t *T) SQLStandardName() string {
1738 return t.SQLStandardNameWithTypmod(false, 0)
1739}
1740
1741var telemetryNameReplaceRegex = regexp.MustCompile("[^a-zA-Z0-9]")
1742

Callers 5

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

Calls 1

Tested by

no test coverage detected