Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.1.67, 5.2.14, 5.3.12, 5.5(EOL), 10.0(EOL), 10.1(EOL)
-
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.
Attachments
Issue Links
- relates to
-
MDEV-5816 MySQL WL#4179 - Stored programs: validation of stored program statements
-
- Closed
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Due Date | 2015-01-27 |
Attachment | mysql-gen.log [ 36627 ] |
Attachment | storeprocedure.sql [ 36628 ] |
Due Date | 2015-01-27 |
Assignee | Elena Stepanova [ elenst ] |
Component/s | Data Definition - Procedure [ 10119 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 5.3.12 [ 12000 ] | |
Affects Version/s | 5.2.14 [ 12101 ] | |
Affects Version/s | 5.1.67 [ 12100 ] | |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.0 [ 16000 ] | |
Affects Version/s | 5.5 [ 15800 ] | |
Affects Version/s | 10.0.15-galera [ 17501 ] | |
Assignee | Elena Stepanova [ elenst ] | Sergei Golubchik [ serg ] |
Labels | upstream-fixed |
Remote Link | This issue links to "WL#4179: Stored programs: validation of stored program statements (Web Link)" [ 21915 ] |
Fix Version/s | 10.0 [ 16000 ] |
Fix Version/s | 10.0 [ 16000 ] |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.1 [ 16100 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 10.0.16 [ 17900 ] | |
Fix Version/s | 5.5.42 [ 18102 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v2 [ 59111 ] | MariaDB v3 [ 66092 ] |
Workflow | MariaDB v3 [ 66092 ] | MariaDB v4 [ 148680 ] |
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.