MySQL 8.3.0
Source Code Documentation
mysql_tzinfo_to_sql.cc File Reference
#include "my_alloc.h"
#include "my_io.h"
#include "mysql/psi/mysql_file.h"
#include "print_version.h"
#include "sql/time_zone_common.h"
#include "sql/tzfile.h"
#include "strmake.h"
#include "welcome_copyright_notice.h"

Macros

#define int4net(A)
 

Functions

static bool tz_load (const char *name, TIME_ZONE_INFO *sp, MEM_ROOT *storage)
 
static void print_tz_as_sql (const char *tz_name, const TIME_ZONE_INFO *sp)
 
static void print_tz_leaps_as_sql (const TIME_ZONE_INFO *sp)
 
static bool scan_tz_dir (char *name_end)
 
void sql_alloc_error_handler ()
 
int main (int argc, char **argv)
 

Variables

static const char *const MAGIC_STRING_FOR_INVALID_ZONEINFO_FILE
 
TIME_ZONE_INFO tz_info
 
MEM_ROOT tz_storage
 
char fullname [FN_REFLEN+1]
 
char * root_name_end
 

Macro Definition Documentation

◆ int4net

#define int4net (   A)
Value:
(int32)(((uint32)((uchar)(A)[3])) | (((uint32)((uchar)(A)[2])) << 8) | \
(((uint32)((uchar)(A)[1])) << 16) | \
(((uint32)((uchar)(A)[0])) << 24))
unsigned char uchar
Definition: my_inttypes.h:51
int32_t int32
Definition: my_inttypes.h:65
uint32_t uint32
Definition: my_inttypes.h:66

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ print_tz_as_sql()

static void print_tz_as_sql ( const char *  tz_name,
const TIME_ZONE_INFO sp 
)
static

◆ print_tz_leaps_as_sql()

static void print_tz_leaps_as_sql ( const TIME_ZONE_INFO sp)
static

◆ scan_tz_dir()

static bool scan_tz_dir ( char *  name_end)
static

◆ sql_alloc_error_handler()

void sql_alloc_error_handler ( void  )

◆ tz_load()

static bool tz_load ( const char *  name,
TIME_ZONE_INFO sp,
MEM_ROOT storage 
)
static

Variable Documentation

◆ fullname

char fullname[FN_REFLEN+1]

◆ MAGIC_STRING_FOR_INVALID_ZONEINFO_FILE

const char* const MAGIC_STRING_FOR_INVALID_ZONEINFO_FILE
static
Initial value:
=
"Local time zone must be set--see zic manual page"

◆ root_name_end

char* root_name_end

◆ tz_info

TIME_ZONE_INFO tz_info

◆ tz_storage

MEM_ROOT tz_storage