Skip to content

Commit

Permalink
Improves the 'use with' bool of the Show statement in order to known …
Browse files Browse the repository at this point in the history
…if it uses in statement, even it is empty.
  • Loading branch information
hgouchet committed Jan 8, 2017
1 parent 5e6de52 commit cd252ad
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions parser_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,26 @@ func TestParser_ParseShow(t *testing.T) {
{
q: `SHOW TABLES WITH CampaignName;`,
stmt: &ShowStatement{
With: "CampaignName",
With: "CampaignName",
UseWith: true,
},
},

// Show statement with a specific column.
{
q: `SHOW TABLES WITH "CampaignName";`,
stmt: &ShowStatement{
With: "CampaignName",
With: "CampaignName",
UseWith: true,
},
},

// Show statement with no column.
{
q: `SHOW TABLES WITH "";`,
stmt: &ShowStatement{
With: "",
UseWith: true,
},
},

Expand Down

0 comments on commit cd252ad

Please sign in to comment.