summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorunknown <ingo@chilla.local>2006-07-06 19:36:07 +0200
committerunknown <ingo@chilla.local>2006-07-06 19:36:07 +0200
commit013cbc39646b5029e9888e0dad3f212ebcd793c7 (patch)
tree32918d6b3b68267d9013a9f76bd6615f8ca0d86f /sql/sql_trigger.cc
parentcee36215f0499f8fa210a95dc0cedafecbe06759 (diff)
parentab5ebc0fb7ce9e6af5bf3ac25425d518ee1a1050 (diff)
downloadmariadb-git-013cbc39646b5029e9888e0dad3f212ebcd793c7.tar.gz
Merge chilla.local:/home/mydev/mysql-5.0
into chilla.local:/home/mydev/mysql-5.0-bug16218 sql/field.cc: Auto merged sql/field.h: Auto merged sql/sql_insert.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_trigger.cc: Auto merged sql/table.cc: Auto merged
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 28d7dc0bb9d..2773dcb14ff 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]));