cockroachdb / cockroachdb/cockroach

parser: explicit error message when reserved word is used

Open
#96,108 0 comments 0 reactions 0 assignees View on GitHub
A-sql-syntax C-enhancement
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

It would be nice to have explicit message stating that a keyword can not be used as an object name for statements like this (pasted with current error message):
create table user (id int);
invalid syntax: statement ignored: at or near "user": syntax error
SQLSTATE: 42601
DETAIL: source SQL:
create table user (id int)
^
HINT: try \h CREATE TABLE

Jira issue: CRDB-23950

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.