We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
DROP TABLE IF EXISTS t1, t2; CREATE TABLE t1(c1 int, c2 int); CREATE TABLE t2(c1 int, c2 int); INSERT INTO t1(`c1`, `c2`) VALUES(0, 0); INSERT INTO t2(`c1`, `c2`) VALUES(0, 0); SELECT * FROM t2 WHERE (SELECT c1 FROM t2 LIMIT 1) = ANY (SELECT c1 FROM t1);
mysql> DROP TABLE IF EXISTS t1, t2; Query OK, 0 rows affected (0.01 sec) mysql> CREATE TABLE t1(c1 int, c2 int); Query OK, 0 rows affected (0.01 sec) mysql> CREATE TABLE t2(c1 int, c2 int); Query OK, 0 rows affected (0.02 sec) mysql> INSERT INTO t1(`c1`, `c2`) VALUES(0, 0); Query OK, 1 row affected (0.01 sec) mysql> INSERT INTO t2(`c1`, `c2`) VALUES(0, 0); Query OK, 1 row affected (0.00 sec) mysql> SELECT * FROM t2 WHERE (SELECT c1 FROM t2 LIMIT 1) = ANY (SELECT c1 FROM t1); +------+------+ | c1 | c2 | +------+------+ | 0 | 0 | +------+------+ 1 row in set (0.01 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 8.0.20 | +-----------+ 1 row in set (0.00 sec)
mysql> DROP TABLE IF EXISTS t1, t2; Query OK, 0 rows affected (0.04 sec) mysql> CREATE TABLE t1(c1 int, c2 int); Query OK, 0 rows affected (0.01 sec) mysql> CREATE TABLE t2(c1 int, c2 int); Query OK, 0 rows affected (0.01 sec) mysql> INSERT INTO t1(`c1`, `c2`) VALUES(0, 0); Query OK, 1 row affected (0.00 sec) mysql> INSERT INTO t2(`c1`, `c2`) VALUES(0, 0); Query OK, 1 row affected (0.00 sec) mysql> SELECT * FROM t2 WHERE (SELECT c1 FROM t2 LIMIT 1) = ANY (SELECT c1 FROM t1); Empty set (0.01 sec)
Latest master 39d8fcc71b6d83a96defcbeafaf2c076583a8328
39d8fcc71b6d83a96defcbeafaf2c076583a8328
The text was updated successfully, but these errors were encountered:
/label sig/planner
Sorry, something went wrong.
/assign
Note: Make Sure that 'component', and 'severity' labels are added Example for how to fill out the template: #20100
Reminiscent
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
Latest master
39d8fcc71b6d83a96defcbeafaf2c076583a8328
The text was updated successfully, but these errors were encountered: