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

Method InformationSchemaName

postgres/parser/types/types.go:1606–1612  ·  view source on GitHub ↗

InformationSchemaName returns the string suitable to populate the data_type column of information_schema.columns. This is different from SQLString() in that it must report SQL standard names that are compatible with PostgreSQL client expectations.

()

Source from the content-addressed store, hash-verified

1604// This is different from SQLString() in that it must report SQL standard names
1605// that are compatible with PostgreSQL client expectations.
1606func (t *T) InformationSchemaName() string {
1607 // This is the same as SQLStandardName, except for the case of arrays.
1608 if t.Family() == ArrayFamily {
1609 return "ARRAY"
1610 }
1611 return t.SQLStandardName()
1612}
1613
1614// SQLString returns the native SQL string that can be used to
1615// reproduce the type via parsing the string as a type. It is used in error

Callers

nothing calls this directly

Calls 2

FamilyMethod · 0.95
SQLStandardNameMethod · 0.95

Tested by

no test coverage detected