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

DDLDatabase cannot handle tables KEY/INDEX clause in create table #8097

Closed
amir20001 opened this issue Dec 7, 2018 · 1 comment
Closed

Comments

@amir20001
Copy link
Contributor

amir20001 commented Dec 7, 2018

Steps to reproduce the problem (if possible, create an MCVE: https://github.com/jOOQ/jOOQ-mcve):

CREATE TABLE `FOO` (
  `id`   VARCHAR(10) NULL,
  `name` VARCHAR(10),
  PRIMARY KEY (`id`),
  KEY (`id`)
);

replacing key with index produces the same error.
error msg:
[ERROR] Failed to execute goal org.jooq:jooq-codegen-maven:3.10.8:generate (default) on project : Error running jOOQ code generation tool: C42000_NO_SUBCLASS: [19:3] LL, [ERROR] name VARCHAR(10), [ERROR] PRIMARY KEY (id), [ERROR] [*]KEY (id) [ERROR] );

Versions:

jOOQ: 3.10.8
Java: 1.8.0_181-b13
Database (include vendor): mysql
OS: mac os 10.13.6
JDBC Driver (include name if inofficial driver):

@lukaseder
Copy link
Member

Support was added in 3.11 through #7171

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

No branches or pull requests

2 participants