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

MySQL - UNIQUE in Create Table with constraint name #262

Open
hubg398 opened this issue Jun 11, 2024 · 0 comments
Open

MySQL - UNIQUE in Create Table with constraint name #262

hubg398 opened this issue Jun 11, 2024 · 0 comments

Comments

@hubg398
Copy link

hubg398 commented Jun 11, 2024

parse_results = DDLParser("""
CREATE TABLE `api_tokenbucket` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `value` VARCHAR(80),
  UNIQUE `constraint_name`(
    `value`
  )
);
"""
, silent=False).run(output_mode='mysql')

The above fails to parse. It works if we remove

'constraint_name'

Cheers

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