#At file:///home/dlenev/src/bzr/mysql-6.1-fk-stage/ based on revid:dlenev@stripped
2736 Dmitry Lenev 2009-07-11
WL#148 "Foreign keys".
Milestone 13 "DDL checks and changes: ALTER, CREATE INDEX, DROP INDEX words".
Work in progress. Fixed wrongly formulated condition which led to failure
when altering transactional table under LOCK TABLES.
modified:
sql/sql_table.cc
=== modified file 'sql/sql_table.cc'
--- a/sql/sql_table.cc 2009-07-07 08:30:18 +0000
+++ b/sql/sql_table.cc 2009-07-11 18:23:22 +0000
@@ -10195,8 +10195,8 @@ view_err:
{
/* Close lock if this is a transactional table */
if (thd->lock &&
- ! thd->locked_tables_mode == LTM_LOCK_TABLES &&
- ! thd->locked_tables_mode == LTM_PRELOCKED_UNDER_LOCK_TABLES)
+ ! (thd->locked_tables_mode == LTM_LOCK_TABLES ||
+ thd->locked_tables_mode == LTM_PRELOCKED_UNDER_LOCK_TABLES))
{
mysql_unlock_tables(thd, thd->lock);
thd->lock=0;
Attachment: [text/bzr-bundle] bzr/dlenev@mysql.com-20090711182322-eg4a05juzy52m8ji.bundle
| Thread |
|---|
| • bzr commit into mysql-6.1-fk branch (dlenev:2736) WL#148 | Dmitry Lenev | 11 Jul |