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 | e24ca38b92e3fcb2d55c6ad5e599054a0122d2d3 (patch) | |
tree | 6ab480710ff3945ba2b743ac5acb104b3f7d3f02 /sql/tztime.cc | |
parent | bf59038d930ef77d3595c978d0b132808979d927 (diff) | |
parent | 6a5d109253d64c6ad7da5d6ac84eec52e02b2598 (diff) | |
download | mariadb-git-e24ca38b92e3fcb2d55c6ad5e599054a0122d2d3.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; } |