summaryrefslogtreecommitdiff
path: root/sql/tztime.cc
diff options
context:
space:
mode:
authorunknown <dlenev@mysql.com>2005-01-28 10:22:50 +0300
committerunknown <dlenev@mysql.com>2005-01-28 10:22:50 +0300
commit8cac2c0562ec5460368be91602b329ddce653d0d (patch)
tree654d19586759f3b5343d53fba8af67eb8e5ce42f /sql/tztime.cc
parenta6bfe13c6f4fc2e0c2bebea8a295a445aa5765e8 (diff)
parentbf89dc063a6576cb08f2da29c8f505846965590b (diff)
downloadmariadb-git-8cac2c0562ec5460368be91602b329ddce653d0d.tar.gz
Manual merge of fixes for bugs #7899 "CREATE TABLE .. SELECT .. and
CONVERT_TZ() function does not work well together" and bug #7705 "CONVERT_TZ() crashes with subquery/WHERE on index column" in 5.0 tree. mysql-test/r/timezone2.result: Auto merged mysql-test/t/timezone2.test: Auto merged sql/item_timefunc.cc: Auto merged sql/item_timefunc.h: Auto merged sql/set_var.h: Auto merged sql/set_var.cc: Manual merge. sql/sql_lex.cc: Ignoring changes in st_lex::unlink_first_table()/link_first_table_back() made in 4.1 since they are not applicable to 5.0. sql/tztime.cc: Manual merge.
Diffstat (limited to 'sql/tztime.cc')
-rw-r--r--sql/tztime.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/tztime.cc b/sql/tztime.cc
index 4b769aed40c..b2b3576e221 100644
--- a/sql/tztime.cc
+++ b/sql/tztime.cc
@@ -1807,8 +1807,11 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
0, HA_READ_KEY_EXACT))
{
#ifdef EXTRA_DEBUG
- sql_print_error("Can't find description of time zone '%.*s'", tz_name->length(),
- tz_name->ptr());
+ /*
+ Most probably user has mistyped time zone name, so no need to bark here
+ unless we need it for debugging.
+ */
+ sql_print_error("Can't find description of time zone '%s'", tz_name_buff);
#endif
goto end;
}