Below is the list of changes that have just been committed into a local
4.1 repository of tomash. When tomash 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-17 13:41:29+04:00, kroki@stripped +1 -0
Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-4.1-runtime
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-4.1-bug21726
MERGE: 1.2547.1.7
sql/sql_select.cc@stripped, 2006-10-17 13:41:25+04:00, kroki@stripped +0 -0
Auto merged
MERGE: 1.457.1.4
# 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: kroki
# Host: moonlight.intranet
# Root: /home/tomash/src/mysql_ab/mysql-4.1-bug21726/RESYNC
--- 1.460/sql/sql_select.cc 2006-10-17 13:41:36 +04:00
+++ 1.461/sql/sql_select.cc 2006-10-17 13:41:36 +04:00
@@ -4821,7 +4821,7 @@ remove_eq_conds(THD *thd, COND *cond, It
Field *field=((Item_field*) args[0])->field;
if (field->flags & AUTO_INCREMENT_FLAG && !field->table->maybe_null &&
(thd->options & OPTION_AUTO_IS_NULL) &&
- thd->insert_id() && thd->substitute_null_with_insert_id)
+ thd->current_insert_id && thd->substitute_null_with_insert_id)
{
#ifdef HAVE_QUERY_CACHE
query_cache_abort(&thd->net);
@@ -4829,9 +4829,16 @@ remove_eq_conds(THD *thd, COND *cond, It
COND *new_cond;
if ((new_cond= new Item_func_eq(args[0],
new Item_int("last_insert_id()",
- thd->insert_id(),
+ thd->current_insert_id,
21))))
{
+ /*
+ Set THD::last_insert_id_used manually, as this statement
+ uses LAST_INSERT_ID() in a sense, and should issue
+ LAST_INSERT_ID_EVENT.
+ */
+ thd->last_insert_id_used= TRUE;
+
cond=new_cond;
cond->fix_fields(thd, 0, &cond);
}
| Thread |
|---|
| • bk commit into 4.1 tree (kroki:1.2558) | kroki | 17 Oct |