Bug #297 | user table in mysql database recognized as reserved word when run in ansi mode | ||
---|---|---|---|
Submitted: | 16 Apr 2003 6:28 | Modified: | 16 May 2003 2:29 |
Reporter: | Jared Reeve | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1 | OS: | Windows (Windows 2000) |
Assigned to: | CPU Architecture: | Any |
[16 Apr 2003 6:28]
Jared Reeve
[16 Apr 2003 6:56]
MySQL Verification Team
We will never change that as USER table is not supposed to be used directly. Instead GRANT / REVOKE and other commands should be used.
[16 May 2003 2:29]
Michael Widenius
Jared, as you yourself conclude the probelm is that in ansi mode 'user' is a reserved word. The way to go around this is to quote the user column name: INSERT INTO "USER" ("HOST", "USER", "PASSWORD") VALUES .... I used the ANSI quoting style above, you can of course also use ` here.