Skip to content

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

@hubertshelley

Description

@hubertshelley
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions