summaryrefslogtreecommitdiff
path: root/sql/tztime.cc
diff options
context:
space:
mode:
authordlenev@mysql.com <>2005-01-28 09:32:43 +0300
committerdlenev@mysql.com <>2005-01-28 09:32:43 +0300
commitc80c503a1b869bfde11b104fdde9d05f3d0de5a0 (patch)
tree6ab480710ff3945ba2b743ac5acb104b3f7d3f02 /sql/tztime.cc
parent3800cede90d58c83f18c6c20c686455e864a3f4e (diff)
parent80282016c230ea6e91d629b1147a40e262487cb0 (diff)
downloadmariadb-git-c80c503a1b869bfde11b104fdde9d05f3d0de5a0.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/dlenev/src/mysql-4.1-tzbug
Diffstat (limited to 'sql/tztime.cc')
-rw-r--r--sql/tztime.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/tztime.cc b/sql/tztime.cc
index 597389220f7..c45271966f9 100644
--- a/sql/tztime.cc
+++ b/sql/tztime.cc
@@ -1773,7 +1773,13 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
if (table->file->index_read(table->record[0], (byte*)table->field[0]->ptr,
0, HA_READ_KEY_EXACT))
{
- sql_print_error("Can't find description of time zone.");
+#ifdef EXTRA_DEBUG
+ /*
+ 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;
}
@@ -1794,7 +1800,7 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
if (table->file->index_read(table->record[0], (byte*)table->field[0]->ptr,
0, HA_READ_KEY_EXACT))
{
- sql_print_error("Can't find description of time zone.");
+ sql_print_error("Can't find description of time zone '%u'", tzid);
goto end;
}