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.
()
| 1300 | // This is different from SQLString() in that it must report SQL standard names |
| 1301 | // that are compatible with PostgreSQL client expectations. |
| 1302 | func (t *T) InformationSchemaName() string { |
| 1303 | // This is the same as SQLStandardName, except for the case of arrays. |
| 1304 | if t.Family() == ArrayFamily { |
| 1305 | return "ARRAY" |
| 1306 | } |
| 1307 | return t.SQLStandardName() |
| 1308 | } |
| 1309 | |
| 1310 | // SQLString returns the CockroachDB native SQL string that can be used to |
| 1311 | // reproduce the type via parsing the string as a type. It is used in error |
nothing calls this directly
no test coverage detected