Below is the list of changes that have just been committed into a local
5.1 repository of cmiller. When cmiller does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2006-10-20 17:49:38-04:00, cmiller@stripped +2 -0
Merge zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint-afterbreak
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
MERGE: 1.2273.149.1
sql/sql_trigger.cc@stripped, 2006-10-20 17:48:17-04:00, cmiller@stripped +0 -0
Auto merged
MERGE: 1.71.1.1
sql/sql_view.cc@stripped, 2006-10-20 17:49:31-04:00, cmiller@stripped +5 -5
ur
MERGE: 1.101.4.8
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: cmiller
# Host: zippy.cornsilk.net
# Root: /home/cmiller/work/mysql/mysql-5.1-maint/RESYNC
--- 1.112/sql/sql_view.cc 2006-10-20 17:49:42 -04:00
+++ 1.113/sql/sql_view.cc 2006-10-20 17:49:42 -04:00
@@ -1417,6 +1417,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIS
query_cache_invalidate3(thd, view, 0);
sp_cache_invalidate();
}
+
if (mysql_bin_log.is_open())
{
thd->clear_error();
@@ -1424,24 +1425,34 @@ bool mysql_drop_view(THD *thd, TABLE_LIS
thd->query, thd->query_length, FALSE, FALSE);
}
- VOID(pthread_mutex_unlock(&LOCK_open));
-
if (error)
{
+ VOID(pthread_mutex_unlock(&LOCK_open));
DBUG_RETURN(TRUE);
}
if (wrong_object_name)
{
+ VOID(pthread_mutex_unlock(&LOCK_open));
my_error(ER_WRONG_OBJECT, MYF(0), wrong_object_db, wrong_object_name,
"VIEW");
DBUG_RETURN(TRUE);
}
if (non_existant_views.length())
{
+ VOID(pthread_mutex_unlock(&LOCK_open));
my_error(ER_BAD_TABLE_ERROR, MYF(0), non_existant_views.c_ptr());
DBUG_RETURN(TRUE);
}
+
+ if (mysql_bin_log.is_open())
+ {
+ thd->clear_error();
+ thd->binlog_query(THD::STMT_QUERY_TYPE,
+ thd->query, thd->query_length, FALSE, FALSE);
+ }
+
send_ok(thd);
+ VOID(pthread_mutex_unlock(&LOCK_open));
DBUG_RETURN(FALSE);
}
--- 1.72/sql/sql_trigger.cc 2006-10-20 17:49:42 -04:00
+++ 1.73/sql/sql_trigger.cc 2006-10-20 17:49:42 -04:00
@@ -284,7 +284,7 @@ end:
thd->clear_error();
/* Such a statement can always go directly to binlog, no trans cache. */
- thd->binlog_query(THD::MYSQL_QUERY_TYPE,
+ thd->binlog_query(THD::MYSQL_STMT_TYPE,
stmt_query.ptr(), stmt_query.length(), FALSE, FALSE);
}
}
| Thread |
|---|
| • bk commit into 5.1 tree (cmiller:1.2326) | Chad MILLER | 20 Oct |