sqlparser icon indicating copy to clipboard operation
sqlparser copied to clipboard

索引名称解析异常

Open huangll opened this issue 6 years ago • 2 comments

1,不支持索引名称为 xxx-2018xxxx 这个形式,也就是说不支持索引名称中有”-" 2,不支持多个索引一起查询

huangll avatar Jun 05 '18 02:06 huangll

Sorry I don't speak Chinese, but Google Translate says: 1, does not support the index name xxx-2018xxxx this form, that is to say does not support the "-" in the index name 2, does not support multiple indexes together

bramp avatar Jun 09 '18 23:06 bramp

The library has been recently updated. It is now possible to parse:

create table t (
  id int,
  unique index `backtick-name` (id)
);

If the index name is within backticks it works.

Can you provide an example of what does not work?

bramp avatar Jun 09 '18 23:06 bramp