diff options
author | unknown <dlenev@mysql.com> | 2005-01-28 09:32:43 +0300 |
---|---|---|
committer | unknown <dlenev@mysql.com> | 2005-01-28 09:32:43 +0300 |
commit | bf89dc063a6576cb08f2da29c8f505846965590b (patch) | |
tree | 6ab480710ff3945ba2b743ac5acb104b3f7d3f02 /sql/tztime.cc | |
parent | 418a06308b6abe8462f5942e0dcf4455fb2073b5 (diff) | |
parent | 20bd0bd6fd693eec59ed1de47a27b46f2af6df3b (diff) | |
download | mariadb-git-bf89dc063a6576cb08f2da29c8f505846965590b.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/dlenev/src/mysql-4.1-tzbug
sql/item_timefunc.cc:
Auto merged
sql/set_var.cc:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/tztime.cc:
Auto merged
Diffstat (limited to 'sql/tztime.cc')
-rw-r--r-- | sql/tztime.cc | 10 |
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; } |