Open zhangysh1995 opened 4 years ago
Here is another one:
tidb> select * from (select 1 from dual);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 34 near ""
mysql [localhost:8020] {msandbox} ((none)) > select * from (select 1 from dual);
ERROR 1248 (42000): Every derived table must have its own alias
MySQL doesn't explicitly permit the query, but the error message is more useful.
/bug P2
Bug Report
1. What did you do?
2. What did you expect to see?
It should return the error with the same error code.
3. What did you see instead?
It cannot process the table name and is inconsistent with MySQL.
4. What version of TiDB are you using? (
tidb-server -V
or runselect tidb_version();
on TiDB)A similar issue which has different error code was opened in TiDB repo.