diff options
author | unknown <dlenev@mysql.com> | 2006-05-02 17:07:23 +0400 |
---|---|---|
committer | unknown <dlenev@mysql.com> | 2006-05-02 17:07:23 +0400 |
commit | 853f5413f631146c42b97409aef5f1ac4ad3614a (patch) | |
tree | a91ffdc7a98eb302f8031c372a6b187c50d3466f /sql/tztime.h | |
parent | 33417297c5e11ff82aae7bc2d8b5a75968725905 (diff) | |
parent | f28b9a34235b08f72bf3c2b8de85227958cac17d (diff) | |
download | mariadb-git-853f5413f631146c42b97409aef5f1ac4ad3614a.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/mysql-5.0-bg11081
Diffstat (limited to 'sql/tztime.h')
-rw-r--r-- | sql/tztime.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/tztime.h b/sql/tztime.h index 23460a8e739..c49b9fe4592 100644 --- a/sql/tztime.h +++ b/sql/tztime.h @@ -69,6 +69,15 @@ extern void my_tz_free(); extern TABLE_LIST fake_time_zone_tables_list; /* + Number of elements in table list produced by my_tz_get_table_list() + (this table list contains tables which are needed for dynamical loading + of time zone descriptions). Actually it is imlementation detail that + should not be used anywhere outside of tztime.h and tztime.cc. +*/ + +static const int MY_TZ_TABLES_COUNT= 4; + +/* Check if we have pointer to the begining of list of implicitly used time zone tables, set SELECT_ACL for them and fast-forward to its end. @@ -90,9 +99,9 @@ inline bool my_tz_check_n_skip_implicit_tables(TABLE_LIST **table, { if (*table == tz_tables) { - for (int i= 0; i < 4; i++) + for (int i= 0; i < MY_TZ_TABLES_COUNT; i++) (*table)[i].grant.privilege= SELECT_ACL; - (*table)+= 3; + (*table)+= MY_TZ_TABLES_COUNT - 1; return TRUE; } return FALSE; |