1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-24 14:48:09 +03:00
Files
mariadb/mysql-test/r
Igor Babaev a287bfa09a Fixed the bug mdev-12558.
In the current code temporary tables we identified and opened before
other tables. CTE tables are identified in the same procedure as
regular tables. When a temporary table and a CTE table have the same
name T any reference to T that is in the scope of the CTE declaration
must be associated with this CTE. Yet it was not done properly.
When a reference to T was found in the scope of the declaration
of CTE T a pointer to this CTE was set in the reference. No check
that the reference had been already associated with a temporary table
was done. As a result, if the temporary table T  had been created then
the reference to T was considered simultaneously as reference to the CTE
named T and as a reference to the temporary table named T. This
confused the code that were executed later and caused a crash of
the server.
Now when a table reference is associated with a CTE any previous
association with a temporary table is dropped.

This problem could be easily avoided if the temporary tables were
not identified prematurely.
as reference to CTE named T and
2017-04-25 19:34:39 -07:00
..
2017-02-10 06:30:42 -05:00
2016-12-29 13:23:18 +01:00
2017-04-22 23:45:38 -07:00
2016-09-06 12:50:02 +04:00
2017-02-10 17:01:45 +01:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2016-12-29 13:23:18 +01:00
2016-06-30 16:38:05 +02:00
2016-12-29 13:23:18 +01:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2016-09-09 08:33:08 +02:00
2016-06-30 23:56:18 -04:00
2017-03-30 12:48:42 +02:00
2017-03-10 18:21:26 +01:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2016-06-21 14:11:02 +02:00
2017-02-10 06:30:42 -05:00
2017-04-01 14:15:18 +03:00
2016-09-10 16:04:44 +02:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2016-12-29 13:23:18 +01:00
2017-04-01 14:15:18 +03:00
2016-09-09 08:33:08 +02:00
2016-12-29 13:23:18 +01:00
2017-03-10 18:21:26 +01:00
2017-01-05 10:48:03 +02:00
2016-12-29 13:23:18 +01:00
2017-03-30 12:48:42 +02:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2017-03-09 08:53:08 +02:00
2017-04-24 14:57:26 -07:00
2017-03-30 12:48:42 +02:00
2017-02-10 06:30:42 -05:00
2017-02-09 19:34:01 -08:00
2016-09-24 15:12:34 +02:00
2017-03-29 08:46:00 -07:00
2017-02-10 06:30:42 -05:00