diff options
author | unknown <sergefp@mysql.com> | 2005-04-18 05:21:44 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-04-18 05:21:44 +0400 |
commit | 955ec71f78a16cd6de19cd48cb7faa2874f5cdc9 (patch) | |
tree | 666579fabdd2725c17ffedc83d49cbd6276c1daf /sql/opt_range.cc | |
parent | b51f70b81e6af314093dd28728a3dc68d1a28fff (diff) | |
download | mariadb-git-955ec71f78a16cd6de19cd48cb7faa2874f5cdc9.tar.gz |
Fix for BUG#9103:
Don't produce data truncation warnings from within cp_buffer_from_ref(). This function
is only used to make index search tuples and data truncation that occurs here has no
relation with truncated values being saved into tables.
mysql-test/r/update.result:
Testcase for BUG#9103
mysql-test/t/update.test:
Testcase for BUG#9103
sql/opt_range.cc:
cp_buffer_from_ref now has THD* parameter
sql/sql_select.h:
cp_buffer_from_ref now has THD* parameter
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index e2cae0598a0..33223b83894 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -2574,7 +2574,7 @@ QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, TABLE_REF *ref) if (!quick) return 0; /* no ranges found */ - if (cp_buffer_from_ref(ref)) + if (cp_buffer_from_ref(thd, ref)) { if (thd->is_fatal_error) goto err; // out of memory |