summaryrefslogtreecommitdiff
path: root/sql/tztime.cc
diff options
context:
space:
mode:
authordlenev@mysql.com <>2005-01-28 10:22:50 +0300
committerdlenev@mysql.com <>2005-01-28 10:22:50 +0300
commit2276bfa37470806bca135c83fcfb9c7678ec0164 (patch)
tree654d19586759f3b5343d53fba8af67eb8e5ce42f /sql/tztime.cc
parentaf12846505834548225cfa636641379756ae7dc8 (diff)
parentc80c503a1b869bfde11b104fdde9d05f3d0de5a0 (diff)
downloadmariadb-git-2276bfa37470806bca135c83fcfb9c7678ec0164.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.
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;
}