Skip to content

Fix dual table query when system schema is selected database#7734

Merged
systay merged 3 commits intovitessio:masterfrom
planetscale:fix-sys-dual
Mar 29, 2021
Merged

Fix dual table query when system schema is selected database#7734
systay merged 3 commits intovitessio:masterfrom
planetscale:fix-sys-dual

Conversation

@harshit-gangal
Copy link
Member

@harshit-gangal harshit-gangal commented Mar 24, 2021

Description

If a system schema is selected as a database the dual query fails

use `mysql`;
select @@max_allowed_packet from dual;
ERROR: "keyspace mysql not found in vschema"

The fix is to send to any keyspace if default is system schema.

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
@harshit-gangal harshit-gangal requested a review from systay March 24, 2021 09:24
@harshit-gangal harshit-gangal changed the title Fix sys dual Fix dual table query when system schema is selected database Mar 24, 2021
@systay systay merged commit 583e5ad into vitessio:master Mar 29, 2021
@systay systay deleted the fix-sys-dual branch March 29, 2021 06:16
@askdba askdba added this to the v10.0 milestone Apr 1, 2021
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.

3 participants