mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Backport of TIME->MYSQL_TIME / Y2K fixset
Made year 2000 handling more uniform Removed year 2000 handling out from calc_days() The above removes some bugs in date/datetimes with year between 0 and 200 Now we get a note when we insert a datetime value into a date column For default values to CREATE, don't give errors for warning level NOTE Fixed some compiler failures Added library ws2_32 for windows compilation (needed if we want to compile with IOCP support) Removed duplicate typedef TIME and replaced it with MYSQL_TIME Better (more complete) fix for: Bug#21103 "DATE column not compared as DATE" Fixed properly Bug#18997 "DATE_ADD and DATE_SUB perform year2K autoconversion magic on 4-digit year value" Fixed Bug#23093 "Implicit conversion of 9912101 to date does not match cast(9912101 as date)"
This commit is contained in:
@@ -86,9 +86,9 @@ public:
|
||||
CHARSET_INFO *fromcs, CHARSET_INFO *tocs)=0;
|
||||
virtual bool store(float from, uint32 decimals, String *buffer)=0;
|
||||
virtual bool store(double from, uint32 decimals, String *buffer)=0;
|
||||
virtual bool store(TIME *time)=0;
|
||||
virtual bool store_date(TIME *time)=0;
|
||||
virtual bool store_time(TIME *time)=0;
|
||||
virtual bool store(MYSQL_TIME *time)=0;
|
||||
virtual bool store_date(MYSQL_TIME *time)=0;
|
||||
virtual bool store_time(MYSQL_TIME *time)=0;
|
||||
virtual bool store(Field *field)=0;
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
int begin_dataset();
|
||||
@@ -116,9 +116,9 @@ public:
|
||||
virtual bool store(const char *from, uint length, CHARSET_INFO *cs);
|
||||
virtual bool store(const char *from, uint length,
|
||||
CHARSET_INFO *fromcs, CHARSET_INFO *tocs);
|
||||
virtual bool store(TIME *time);
|
||||
virtual bool store_date(TIME *time);
|
||||
virtual bool store_time(TIME *time);
|
||||
virtual bool store(MYSQL_TIME *time);
|
||||
virtual bool store_date(MYSQL_TIME *time);
|
||||
virtual bool store_time(MYSQL_TIME *time);
|
||||
virtual bool store(float nr, uint32 decimals, String *buffer);
|
||||
virtual bool store(double from, uint32 decimals, String *buffer);
|
||||
virtual bool store(Field *field);
|
||||
@@ -150,9 +150,9 @@ public:
|
||||
virtual bool store(const char *from,uint length, CHARSET_INFO *cs);
|
||||
virtual bool store(const char *from, uint length,
|
||||
CHARSET_INFO *fromcs, CHARSET_INFO *tocs);
|
||||
virtual bool store(TIME *time);
|
||||
virtual bool store_date(TIME *time);
|
||||
virtual bool store_time(TIME *time);
|
||||
virtual bool store(MYSQL_TIME *time);
|
||||
virtual bool store_date(MYSQL_TIME *time);
|
||||
virtual bool store_time(MYSQL_TIME *time);
|
||||
virtual bool store(float nr, uint32 decimals, String *buffer);
|
||||
virtual bool store(double from, uint32 decimals, String *buffer);
|
||||
virtual bool store(Field *field);
|
||||
|
||||
Reference in New Issue
Block a user