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

Common empty resultset query on MySQL returns a row in Vitess #6663

Closed
aquarapid opened this issue Sep 3, 2020 · 1 comment
Closed

Common empty resultset query on MySQL returns a row in Vitess #6663

aquarapid opened this issue Sep 3, 2020 · 1 comment
Milestone

Comments

@aquarapid
Copy link
Contributor

A common way to run a query against MySQL that will return an empty resultset is:

select 1 from dual where false;

So, against MySQL:

mysql> select 1 from dual where false;
Empty set (0.00 sec)

But against Vitess:

mysql> select 1 from dual where false;
+-------+
| :vtg1 |
+-------+
|     1 |
+-------+
1 row in set (0.00 sec)

This is not significant per-se, but this query is often used as a connpool "keepalive" query, or as a test query that is expected to return an empty resultset.

@harshit-gangal
Copy link
Member

harshit-gangal commented Sep 3, 2020

Closed via #6666

@askdba askdba added this to the v8.0 milestone Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants