Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
32fed579
Commit
32fed579
authored
Sep 17, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-tzfix
parents
e74b00bb
436b8045
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
sql/tztime.cc
sql/tztime.cc
+25
-11
No files found.
sql/tztime.cc
View file @
32fed579
...
@@ -1395,15 +1395,21 @@ extern "C" byte* my_offset_tzs_get_key(Time_zone_offset *entry, uint *length,
...
@@ -1395,15 +1395,21 @@ extern "C" byte* my_offset_tzs_get_key(Time_zone_offset *entry, uint *length,
/*
/*
Prepare table list with time zone related tables from preallocated array.
Prepare table list with time zone related tables from preallocated array
and add to global table list.
SYNOPSIS
SYNOPSIS
tz_init_table_list()
tz_init_table_list()
tz_tabs - pointer to preallocated array of 4 TABLE_LIST objects.
tz_tabs - pointer to preallocated array of 4 TABLE_LIST objects
global_next_ptr - pointer to variable which points to global_next member
of last element of global table list (or list root
then list is empty) (in/out).
DESCRIPTION
DESCRIPTION
This function prepares list of TABLE_LIST objects which can be used
This function prepares list of TABLE_LIST objects which can be used
for opening of time zone tables from preallocated array.
for opening of time zone tables from preallocated array. It also links
this list to the end of global table list (it will read and update
accordingly variable pointed by global_next_ptr for this).
*/
*/
static
void
static
void
...
@@ -1434,15 +1440,21 @@ tz_init_table_list(TABLE_LIST *tz_tabs, TABLE_LIST ***global_next_ptr)
...
@@ -1434,15 +1440,21 @@ tz_init_table_list(TABLE_LIST *tz_tabs, TABLE_LIST ***global_next_ptr)
/*
/*
Create table list with time zone related tables.
Create table list with time zone related tables and add it to the end
of global table list.
SYNOPSIS
SYNOPSIS
my_tz_get_table_list()
my_tz_get_table_list()
thd - current thread object
thd - current thread object
global_next_ptr - pointer to variable which points to global_next member
of last element of global table list (or list root
then list is empty) (in/out).
DESCRIPTION
DESCRIPTION
This function creates list of TABLE_LIST objects allocated in thd's
This function creates list of TABLE_LIST objects allocated in thd's
memroot, which can be used for opening of time zone tables.
memroot, which can be used for opening of time zone tables. It will also
link this list to the end of global table list (it will read and update
accordingly variable pointed by global_next_ptr for this).
RETURN VALUES
RETURN VALUES
Returns pointer to first TABLE_LIST object, (could be 0 if time zone
Returns pointer to first TABLE_LIST object, (could be 0 if time zone
...
@@ -1497,7 +1509,7 @@ my_tz_init(THD *org_thd, const char *default_tzname, my_bool bootstrap)
...
@@ -1497,7 +1509,7 @@ my_tz_init(THD *org_thd, const char *default_tzname, my_bool bootstrap)
{
{
THD
*
thd
;
THD
*
thd
;
TABLE_LIST
*
tables
=
0
;
TABLE_LIST
*
tables
=
0
;
TABLE_LIST
tables_buff
[
5
],
**
tmp_link
,
*
first_table
;
TABLE_LIST
tables_buff
[
5
],
**
last_global_next_ptr
;
TABLE
*
table
;
TABLE
*
table
;
TZ_NAMES_ENTRY
*
tmp_tzname
;
TZ_NAMES_ENTRY
*
tmp_tzname
;
my_bool
return_val
=
1
;
my_bool
return_val
=
1
;
...
@@ -1564,10 +1576,12 @@ my_tz_init(THD *org_thd, const char *default_tzname, my_bool bootstrap)
...
@@ -1564,10 +1576,12 @@ my_tz_init(THD *org_thd, const char *default_tzname, my_bool bootstrap)
(
char
*
)
"time_zone_leap_second"
;
(
char
*
)
"time_zone_leap_second"
;
tables_buff
[
0
].
lock_type
=
TL_READ
;
tables_buff
[
0
].
lock_type
=
TL_READ
;
tables_buff
[
0
].
db
=
thd
->
db
;
tables_buff
[
0
].
db
=
thd
->
db
;
tables_buff
[
0
].
next_global
=
tables_buff
[
0
].
next_local
=
tables_buff
+
1
;
/*
/* Fill TABLE_LIST for rest of the time zone describing tables */
Fill TABLE_LIST for the rest of the time zone describing tables
tmp_link
=
&
first_table
;
and link it to first one.
tz_init_table_list
(
tables_buff
+
1
,
&
tmp_link
);
*/
last_global_next_ptr
=
&
(
tables_buff
[
0
].
next_global
);
tz_init_table_list
(
tables_buff
+
1
,
&
last_global_next_ptr
);
if
(
open_tables
(
thd
,
tables_buff
,
&
counter
)
||
if
(
open_tables
(
thd
,
tables_buff
,
&
counter
)
||
lock_tables
(
thd
,
tables_buff
,
counter
))
lock_tables
(
thd
,
tables_buff
,
counter
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment