summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorkostja@bodhi.local <>2006-07-08 21:45:02 +0400
committerkostja@bodhi.local <>2006-07-08 21:45:02 +0400
commitf1d949a856d04ced9b406572fa7d6d8bc4f0fff3 (patch)
treeb6199047edbf5520736ded4cb1c19af19d49a477 /sql/sql_trigger.cc
parentff1947da1e9b5d5d8c739ff3c56be8cbadca37b5 (diff)
parentf631765a069063c6c475bed53176f2692283f70e (diff)
downloadmariadb-git-f1d949a856d04ced9b406572fa7d6d8bc4f0fff3.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into bodhi.local:/opt/local/work/mysql-5.0-runtime-merge-41
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r--sql/sql_trigger.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index 55744631210..66a16f16d8c 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -747,7 +747,8 @@ bool Table_triggers_list::prepare_record1_accessors(TABLE *table)
QQ: it is supposed that it is ok to use this function for field
cloning...
*/
- if (!(*old_fld= (*fld)->new_field(&table->mem_root, table)))
+ if (!(*old_fld= (*fld)->new_field(&table->mem_root, table,
+ table == (*fld)->table)))
return 1;
(*old_fld)->move_field((my_ptrdiff_t)(table->record[1] -
table->record[0]));