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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
da149ecc
Commit
da149ecc
authored
Jun 25, 2004
by
paul@ice.snake.net
Browse files
Options
Browse Files
Download
Plain Diff
Merge paul@bk-internal.mysql.com:/home/bk/mysql-4.1
into ice.snake.net:/Volumes/ice2/MySQL/bk/mysql-4.1
parents
6a0676d8
ab26a684
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
sql/mysql_priv.h
sql/mysql_priv.h
+0
-8
sql/tztime.cc
sql/tztime.cc
+14
-0
sql/tztime.h
sql/tztime.h
+8
-0
No files found.
sql/mysql_priv.h
View file @
da149ecc
...
@@ -40,14 +40,6 @@ extern const key_map key_map_empty;
...
@@ -40,14 +40,6 @@ extern const key_map key_map_empty;
extern
const
key_map
key_map_full
;
extern
const
key_map
key_map_full
;
extern
const
char
*
primary_key_name
;
extern
const
char
*
primary_key_name
;
/*
Portable time_t replacement.
Should be signed and hold seconds for 1902-2038 range.
*/
typedef
long
my_time_t
;
#define MY_TIME_T_MAX LONG_MAX
#define MY_TIME_T_MIN LONG_MIN
#include "mysql_com.h"
#include "mysql_com.h"
#include <violite.h>
#include <violite.h>
#include "unireg.h"
#include "unireg.h"
...
...
sql/tztime.cc
View file @
da149ecc
...
@@ -24,7 +24,18 @@
...
@@ -24,7 +24,18 @@
#pragma implementation // gcc: Class implementation
#pragma implementation // gcc: Class implementation
#endif
#endif
/*
We should not include mysql_priv.h in mysql_tzinfo_to_sql utility since
it creates unsolved link dependencies on some platforms.
*/
#if !defined(TZINFO2SQL) && !defined(TESTTIME)
#include "mysql_priv.h"
#include "mysql_priv.h"
#else
#include <my_global.h>
#include "tztime.h"
#include <my_sys.h>
#endif
#include "tzfile.h"
#include "tzfile.h"
#include <m_string.h>
#include <m_string.h>
#include <my_dir.h>
#include <my_dir.h>
...
@@ -486,6 +497,8 @@ prepare_tz_info(TIME_ZONE_INFO *sp, MEM_ROOT *storage)
...
@@ -486,6 +497,8 @@ prepare_tz_info(TIME_ZONE_INFO *sp, MEM_ROOT *storage)
}
}
#if !defined(TZINFO2SQL)
static
const
uint
mon_lengths
[
2
][
MONS_PER_YEAR
]
=
static
const
uint
mon_lengths
[
2
][
MONS_PER_YEAR
]
=
{
{
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
},
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
},
...
@@ -922,6 +935,7 @@ TIME_to_gmt_sec(const TIME *t, const TIME_ZONE_INFO *sp, bool *in_dst_time_gap)
...
@@ -922,6 +935,7 @@ TIME_to_gmt_sec(const TIME *t, const TIME_ZONE_INFO *sp, bool *in_dst_time_gap)
/*
/*
End of elsie derived code.
End of elsie derived code.
*/
*/
#endif
/* !defined(TZINFO2SQL) */
#if !defined(TESTTIME) && !defined(TZINFO2SQL)
#if !defined(TESTTIME) && !defined(TZINFO2SQL)
...
...
sql/tztime.h
View file @
da149ecc
...
@@ -19,6 +19,14 @@
...
@@ -19,6 +19,14 @@
#pragma interface
/* gcc class interface */
#pragma interface
/* gcc class interface */
#endif
#endif
/*
Portable time_t replacement.
Should be signed and hold seconds for 1902-2038 range.
*/
typedef
long
my_time_t
;
#define MY_TIME_T_MAX LONG_MAX
#define MY_TIME_T_MIN LONG_MIN
#if !defined(TESTTIME) && !defined(TZINFO2SQL)
#if !defined(TESTTIME) && !defined(TZINFO2SQL)
/*
/*
This class represents abstract time zone and provides
This class represents abstract time zone and provides
...
...
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