summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-04-18 05:21:44 +0400
committerunknown <sergefp@mysql.com>2005-04-18 05:21:44 +0400
commit955ec71f78a16cd6de19cd48cb7faa2874f5cdc9 (patch)
tree666579fabdd2725c17ffedc83d49cbd6276c1daf /sql/sql_select.h
parentb51f70b81e6af314093dd28728a3dc68d1a28fff (diff)
downloadmariadb-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/sql_select.h')
-rw-r--r--sql/sql_select.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index ab3b442ef74..caf4574fbec 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -445,7 +445,7 @@ public:
const char *name() const { return "const"; }
};
-bool cp_buffer_from_ref(TABLE_REF *ref);
+bool cp_buffer_from_ref(THD *thd, TABLE_REF *ref);
bool error_if_full_join(JOIN *join);
int report_error(TABLE *table, int error);
int safe_index_read(JOIN_TAB *tab);