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

Updated fetchMySQLKeys() to tolerate backticks #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ClintFoo
Copy link

The MySQL 'SHOW CREATE TABLE' output can include backticks to escape the column names. The regular expression patterns in fetchMySQLKeys() were loosened to tolerate backticks in addition to double quotes. Also the UNIQUE KEYS pattern was loosened to tolerate additional statements such as 'USING BTREE' which my occur before the end of the line.

The MySQL 'SHOW CREATE TABLE' output can include backticks to escape the column names. The regular expression patterns in fetchMySQLKeys() were loosened to tolerate backticks in addition to double quotes. Also the UNIQUE KEYS pattern was loosened to tolerate additional statements such as 'USING BTREE' which my occur before the end of the line.
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

Successfully merging this pull request may close these issues.

1 participant