cockroachdb / cockroachdb/cockroach

sql: use SqlStandardName instead of Name for error messages

Open
#124,087 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.