Bug #21403 | more specific SQL states for 23nnn | ||
---|---|---|---|
Submitted: | 1 Aug 2006 19:21 | ||
Reporter: | Matthew Lord | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S4 (Feature request) |
Version: | all | OS: | Any (all) |
Assigned to: | CPU Architecture: | Any |
[1 Aug 2006 19:21]
Matthew Lord
[3 Aug 2006 14:56]
Matthew Lord
I just wanted to note that class 23nnn was used as an example. It would be great if we could apply this logic to all the various SQL state classes.
[10 Oct 2006 16:20]
Alexandre Lima
what I can change the sqlstate?
[3 May 2010 11:37]
Chris Wilson
Error: 1052 SQLSTATE: 23000 (ER_NON_UNIQ_ERROR) Message: Column '%s' in %s is ambiguous This is an error in the query. It has nothing to do with a constraint violation of any kind below the SQL syntax level. It can even happen in SELECT queries. I'd say that reporting this as a constraint violation (SQL state 23000) is a bug. Possible more accurate SQL state codes would be: 42000 Syntax error or access violation 42S22 Column not found