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

PR for review of tickets/DM-2349 #3

Merged
merged 1 commit into from Mar 18, 2015
Merged

PR for review of tickets/DM-2349 #3

merged 1 commit into from Mar 18, 2015

Conversation

ktlim
Copy link

@ktlim ktlim commented Mar 18, 2015

Fixes for metaserv documentation parser and inclusion of test.

@@ -47,7 +47,7 @@ class SchemaToMeta(object):

_tableStart = re.compile(r'CREATE TABLE (\w+)*')
_tableEnd = re.compile(r"\)")
_engineLine = re.compile(r'\) (ENGINE|TYPE)=(\w+)*;')
_engineLine = re.compile(r'\)[\s]*(ENGINE|TYPE)[\s]*=[\s]*(\w+)*;')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for brackets if there's only one item within them.
(\w+)* is (nearly) the same as (\w*), but I don't think you want that; I think you want (\w+)\s*.

Improvements include:
 - bug fix: 'engine = <type>' was not parsed
 - ignoring commented lines
 - added support for DEFAULT and few others
@jbecla jbecla merged commit 34c85f1 into master Mar 18, 2015
@ktlim ktlim deleted the tickets/DM-2349 branch August 25, 2018 06:44
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.

None yet

2 participants