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

Fails to parser CREATE TABLE #39

Closed
nijel opened this issue Mar 1, 2016 · 1 comment
Closed

Fails to parser CREATE TABLE #39

nijel opened this issue Mar 1, 2016 · 1 comment
Assignees
Labels

Comments

@nijel
Copy link
Contributor

nijel commented Mar 1, 2016

Following SQL is not correctly parsed:

CREATE TABLE `customers` (
  `login_cnt` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Počet přihlášení',
  `activated` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Účet je aktivovaný (0 pouze u fiktivní registrace na základě prodejek)',
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;

It seems that combiding DEFAULT with COMMENT is what causes the problem here.

@nijel
Copy link
Contributor Author

nijel commented Mar 2, 2016

Note that accents are not causing the problems, same happens with:

CREATE TABLE `wp_audio` (
 `somedata` int(11) DEFAULT NULL COMMENT 'ma data',
 `someinfo` int(11) DEFAULT NULL COMMENT 'ma info'
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant