diff options
author | evgen@sunlight.local <> | 2006-04-05 20:12:26 +0400 |
---|---|---|
committer | evgen@sunlight.local <> | 2006-04-05 20:12:26 +0400 |
commit | 368b92390c4e522636799be7078b4c4f961dfee3 (patch) | |
tree | caadf65dd865136ee2466310baad951b9add3fef /sql/sql_update.cc | |
parent | 139808f0207a23acf4d97add87c8d9330bc02e12 (diff) | |
parent | d07240599d5a26ce10fddf6b942f62dc2293442c (diff) | |
download | mariadb-git-368b92390c4e522636799be7078b4c4f961dfee3.tar.gz |
Manually merged
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index b19d6504b2e..75e8db6621f 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -1229,6 +1229,11 @@ multi_update::initialize_tables(JOIN *join) Field_string offset(table->file->ref_length, 0, "offset", &my_charset_bin); offset.init(table); + /* + The field will be converted to varstring when creating tmp table if + table to be updated was created by mysql 4.1. Deny this. + */ + offset.can_alter_field_type= 0; if (!(ifield= new Item_field(((Field *) &offset)))) DBUG_RETURN(1); ifield->maybe_null= 0; |