Bug #12204 | "connection" keyword is reserved and cannot be used as a field name | ||
---|---|---|---|
Submitted: | 27 Jul 2005 11:59 | Modified: | 6 Mar 2007 19:38 |
Reporter: | Wongy Ygnow | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
Version: | 5.0 | OS: | Linux (Linux, Windows XP) |
Assigned to: | Antony Curtis | CPU Architecture: | Any |
[27 Jul 2005 11:59]
Wongy Ygnow
[27 Jul 2005 12:04]
Aleksey Kishkin
Hi! Absolutely correct. Connection is reserverd word. it's described in http://dev.mysql.com/doc/mysql/en/reserved-words.html
[27 Jul 2005 13:35]
Wongy Ygnow
I was exactly looking for such information! Thanx for that. Nevertheless, it is not explicitely mentioned that those words are reserved as from 5.0, since for 4.1 the word "connection" is not reserved, f.i.
[8 Aug 2005 8:41]
Sergei Golubchik
Antony, could you check why CONNECTION should be reserved (and "un-reserve" it if it should not) ? As far as I can see it need not to be reserved.
[8 Aug 2005 10:33]
Antony Curtis
From the documents that I have readily at hand, CONNECTION is actually defined as a reserved word in the SQL99 specification. Fortunately, it is defined as a non-reserved word in the SQL03 specification.
[8 Aug 2005 12:38]
Antony Curtis
There are several tokens we define as reserved keywords which SQL03 defines as non-reserved and vice versa.
[1 Feb 2007 1:00]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/19147 ChangeSet@1.2390, 2007-01-31 17:00:43-08:00, antony@ppcg5.local +3 -0 Bug#12204 "CONNECTION is treated as a reserved keyword" Allow CONNECTION to be an unreserved keyword. Includes test.
[7 Feb 2007 22:22]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/19522 ChangeSet@1.2405, 2007-02-07 14:22:19-08:00, antony@ppcg5.local +3 -0 Bug#12204 "CONNECTION is a reserved keyword" Allow connection to be used as an ordinary identifier Tests included.
[20 Feb 2007 18:03]
Ingo Strüwing
Pushed to 5.1.16 and 5.0.36.
[20 Feb 2007 20:15]
Paul DuBois
Noted in 5.0.36, 5.1.16 changelogs. CONNECTION is no longer treated as a reserved word.
[2 Mar 2007 10:55]
Sveta Smirnova
It is still in 5.0.36 package. Also 5.2 branch is affected. See also Bug #26787
[6 Mar 2007 7:21]
Calvin Sun
The fix did not get into 5.0.36, but in 5.0.38. The changelog needs to be updated.
[6 Mar 2007 19:38]
Paul DuBois
Moved 5.0.36 changelog entry to 5.0.38.