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

[BUG] parse failed in a joint index of multiple fields in mysql dialect #1149

Open
hubertshelley opened this issue Feb 29, 2024 · 0 comments

Comments

@hubertshelley
Copy link

CREATE TABLE `data` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `bind_id` varchar(36) COLLATE utf8mb4_general_ci NOT NULL,
  `json` json NOT NULL,
  `source_key` varchar(128) COLLATE utf8mb4_general_ci NOT NULL,
  `is_synced` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `bind_id_source_key_ids` (`bind_id`,`source_key`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci

sql parser error: Expected ',' or ')' after column definition, found: USING at Line: 8, Column 64

@alamb alamb changed the title [BUG] parse failed in a joint index of multiple fields [BUG] parse failed in a joint index of multiple fields in mysql dialect Feb 29, 2024
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