Skip to content

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

Closed

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

Activity

  1. 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[/+] on Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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