8000 Cannot parse "show create table `a.b`" · Issue #733 · src-d/go-mysql-server · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Cannot parse "show create table a.b" #733

@andremarianiello

Description

@andremarianiello

Queries like

select * from `a.b`

parse, but

show create table `a.b`

does not. It fails with

expecting "`" but got "." instead

I th 62E4 ink

steps = parseFuncs{
expectQuote,
readIdent(ident),
expectQuote,
}
is to blame because readIdent tries to parse a valid identifier, but since we are in backticks we should be accepting almost anything here instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0