Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.0-1, 10.2.0-3, 10.2.0-5, 10.2.0-6, 10.2.0-7, 10.2.0-8, 10.2.0-9, 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 5.5.50
Description
It is a well-known and very old MySQL/MariaDB limitation that temporary tables can only be used once in any query; for example, one cannot join a temporary table to itself. This task is about removing this limitation.
original bug report:
if I create temporary table a (id int); I cant select a1.* from a a1, a a2;
I understand, that http://bugs.mysql.com/bug.php?id=10327 is in "feature" state for 8(!!!) years.
But may be at least at mariadb someone to fix it.
It is not so extraordinary type of select.
I had bumped at almost all kind of problems about this, which are described about this bug. And any kind of rewrite selects/logic to avoid this error is a huge performance and logic issuse at hiload projects.
Can anyone tell me if it would be fixed? when? where?
Because I cant find any mention about it in mariadb.
Sorry if I missed something.
Attachments
Issue Links
- blocks
-
CONJ-296 Support COM_MULTI
- Closed
- causes
-
MDEV-15867 Slave SQL: Error 'Table 't' is specified twice (ER_UPDATE_TABLE_USED) upon CREATE TABLE .. SELECT
- Closed
- relates to
-
MDEV-6115 window functions as in the SQL standard
- Closed
-
MDEV-8789 Implement non-recursive common table expressions
- Closed
-
MDEV-10216 Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed in myisam/mi_open.c:67: test_if_reopen
- Closed
-
MDEV-11173 If a materialized VIEW is used multiple times in a query, several temporary tables are created
- Open