Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for SQLSTATE #18287

Open
dveeden opened this issue Jul 18, 2024 · 0 comments
Open

Add docs for SQLSTATE #18287

dveeden opened this issue Jul 18, 2024 · 0 comments

Comments

@dveeden
Copy link
Contributor

dveeden commented Jul 18, 2024

mysql> SELECT abc;
ERROR 1054 (42S22): Unknown column 'abc' in 'field list'

Here 42S22 is in the 42000 class that means "syntax error or access rule violation".

See also https://github.com/pingcap/tidb/blob/master/pkg/parser/mysql/state.go

Suggestion:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant