Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.1.67, 5.2.14, 5.3.12, 10.1, 10.0, 5.5
-
Component/s: Data Definition - Alter Table, Data Definition - Procedure
-
Labels:
-
Environment:RHEL 6
Description
If we create a temporary table with the same name within a store procedure, and try to drop some columns in two different sessions running at the same moment, error " Unknown column" may pop.
Although this is documented in
https://mariadb.com/kb/en/mariadb/documentation/sql-commands/data-definition/create/create-table/
"Temporary table names are specific to your session. They may conflict with other temporary tables from other sessions or shadow names of non-temporary tables."
But this is different behavior with Mysql
http://dev.mysql.com/doc/refman/5.5/en/create-table.html
This means that two different sessions can use the same temporary table name without conflicting with each other or with an existing non-TEMPORARY table of the same name. (The existing table is hidden until the temporary table is dropped.)
This is stopper if using Mariadb as a drop in replacement for Mysql, as this require rewrite all SPs with alter temporary statement.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-5816 MySQL WL#4179 - Stored programs: validation of stored program statements
-
- Stalled
-
- links to
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
You chose 10.0.15-galera as an affected version. Did you really mean this, are you using a Galera cluster?
If not, could you please
Thanks.
Also, regarding the quote from the documentation, I don't think it was meant as an opposite to what MySQL manual says, but I agree it sounds weird. After we figure out why you are getting the error, we'll get the documentation fixed as well.