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

Integrity check on database names. #84

Open
bmschmidt opened this issue Sep 23, 2015 · 0 comments
Open

Integrity check on database names. #84

bmschmidt opened this issue Sep 23, 2015 · 0 comments

Comments

@bmschmidt
Copy link
Member

Currently an error can be thrown like this:

 File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-bookworm' at line 1")

The cause is a bookworm with a name like metadata-bookworm. Dashes are not allowed in bookworm names. There should be code upon loading a bookworm.cnf file that makes sure the name matches the regex ^[\w\d_]+$. (Or is it ^\w[\w\d_]+$?)

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