cockroachdb / cockroachdb/cockroach
sql: use SqlStandardName instead of Name for error messages
Open
A-sql-pgcompat
C-bug
T-sql-queries
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
We often use `types.T.Name()` when printing a type for an error message, but this method differs in some cases from what Postgres outputs, for example, `bigint` vs `int` for a 64-bit integer. We should consider using `types.T.SQLStandardName()` instead, which is more compatible with postgres.
Jira issue: CRDB-38689
Contributor guide
Assessment
This issue has not been assessed yet.