Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added default databases when calling 'show databases' #7256

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

Akilan1999
Copy link
Contributor

@Akilan1999 Akilan1999 commented Jan 6, 2021

Description

Added default databases when calling 'show databases'.
Previously show databases and keyspaces acted as the same.

Related Issue(s)

#7158

Checklist

  • [Tests Added] Tests were added or are not required
  • [Not required ] Documentation was added or is not required

Impacted Areas in Vitess

Components that this PR will affect:

  • [x ] Query Serving
  • [x ] Build

for _, query := range []string{"show databases", "show DATABASES", "show schemas", "show SCHEMAS"} {
qr, err := executor.Execute(ctx, "TestExecute", session, query, nil)
require.NoError(t, err)
// Showing default tables (5+4[default])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: tables -> databases

Signed-off-by: akilan <Akilanselva@hotmail.com>
@systay systay merged commit ae24394 into vitessio:master Jan 14, 2021
@mavenraven
Copy link
Contributor

nice! thanks @Akilan1999 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants