-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
admin is a reserved word in mySQL 8 #93
Comments
|
installation-bundle/src/InstallTool.php Lines 317 to 337 in 4c1765a
@ausi Do I quote only |
|
AFAIR we agreed on only quoting reserved field names in hardcoded queries. |
|
Ok. Looks crappy though. 😄 |
leofeyer
added a commit
that referenced
this issue
Jul 12, 2018
leofeyer
added a commit
to contao/core-bundle
that referenced
this issue
Jul 12, 2018
|
Fixed in 86f04c1 and contao/core-bundle@4b2f9d2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using contao/install I'm asked to create a admin user though there already exists a user with
admin = '1'in the database.When trying to create a (new) admin user an exception is thrown.
Reason:
adminis a reserved word in 8.x versions of mySQL (see https://dev.mysql.com/doc/refman/8.0/en/keywords.html which states : "ADMIN became nonreserved in 8.0.12" but 8.0.12 is not yet released.The error occures in
hasAdminUser()where using`admin` = '1'would solve the issue.same problem in
persistAdminUser()I don't know if changes within Contao are required. Especially as
adminwill no longer be a reserved word from mySQL 8.0.12 on. So this is mostly to file the issue so it could by found if somebody else stumbles upon the same problem.The text was updated successfully, but these errors were encountered: