mariadb/include
unknown b41b0fd62b Bug#18997: DATE_ADD and DATE_SUB perform year2K autoconversion magic on 4-digit year value
if input year for date_add() / date_sub() with INTERVAL is low enough for
calc_daynr() to possibly return incorrect results (calc_daynr() has no information
on whether the year is low because it was a two-digit year ('77) or because it
was a really low four-digit year (0077) and will indiscriminately try to turn the
value into a four-digit year by adding 1900 or 2000 respectively), the functions
will now throw NULL.


include/my_time.h:
  new define YY_MAGIC_BELOW: if year is below this threshold, magic kicks in in
  calc_daynr(). the idea is to convert two-digit years to four-digit ones, adding
  1900 to values >= YY_PART_YEAR or adding 2000 otherwise.
  current value of YY_MAGIC_BELOW derived from original code in calc_daynr()
mysql-test/r/func_time.result:
  test where 2 digit -> 4 digit year magic kicks in, and whether we throw NULL when
  it happens
mysql-test/t/func_time.test:
  test where 2 digit -> 4 digit year magic kicks in, and whether we throw NULL when
  it happens
sql-common/my_time.c:
  use new const YY_MAGIC_BELOW, apply 2-digit -> 4-digit magic only to years
  below this threshold.
sql/item_timefunc.cc:
  throw NULL when year in date_add() / date_sub() would be affected by
  2 digit -> 4 digit magic.
2006-05-16 03:32:24 +02:00
..
mysql WL#3201 additional post-review fixes 2006-05-02 04:11:00 -07:00
.cvsignore
base64.h
config-netware.h Several Netware specific fixes. 2006-02-02 16:22:31 +02:00
config-win.h Merge mysql.com:/home/jimw/my/mysql-5.0-clean 2006-05-01 11:38:15 -07:00
decimal.h
errmsg.h Another long patch to remove the rest of the OS2 support. 2006-04-15 08:49:00 -07:00
ft_global.h
hash.h
heap.h Merge mysql.com:/home/kostja/mysql/tmp_merge 2006-02-08 23:53:45 +03:00
help_end.h
help_start.h
keycache.h
m_ctype.h Fix spelling in comments as requested by Osku 2006-05-02 09:13:58 -04:00
m_string.h UNIXWARE removal 2006-04-17 15:56:59 -07:00
Makefile.am Drop a number of OS2 specific files. 2006-04-10 17:48:19 -07:00
md5.h
my_aes.h
my_alarm.h
my_alloc.h
my_base.h fix HA_ERR_RECORD_DELETED for falcon 2006-05-09 15:14:29 -04:00
my_bitmap.h Added missing prototypes to mysys/my_bitmap.h 2006-04-11 20:31:02 +02:00
my_dbug.h Define USE_TLS when compiling libmysql.dll, to avoid crashing when 2006-03-22 09:55:26 +01:00
my_dir.h
my_getopt.h
my_global.h Merge mysql.com:/home/jimw/my/mysql-5.0-clean 2006-04-30 13:27:38 -07:00
my_handler.h
my_list.h
my_net.h Another long patch to remove the rest of the OS2 support. 2006-04-15 08:49:00 -07:00
my_no_pthread.h UNIXWARE removal 2006-04-17 15:56:59 -07:00
my_nosys.h
my_pthread.h UNIXWARE removal 2006-04-17 15:56:59 -07:00
my_semaphore.h
my_sys.h After merge fixes 2006-05-04 06:28:24 +03:00
my_time.h Bug#18997: DATE_ADD and DATE_SUB perform year2K autoconversion magic on 4-digit year value 2006-05-16 03:32:24 +02:00
my_tree.h BUG#18160 - Memory-/HEAP Table endless growing indexes 2006-04-19 15:13:50 +05:00
my_trie.h
my_uctype.h WL#1386 - CTYPE table for unicode character sets 2006-02-02 10:07:47 +04:00
my_user.h
my_vle.h
my_xml.h
myisam.h Added support for key_block_size for key and table level (WL#602) 2006-05-03 15:59:17 +03:00
myisammrg.h
myisampack.h
mysql.h Merge neptunus.(none):/home/msvensson/mysql/bug17208/my50-bug17208 2006-04-26 22:24:25 +02:00
mysql_com.h
mysql_embed.h
mysql_time.h
mysql_version.h.in
mysys_err.h After merge fixes 2006-05-04 06:28:24 +03:00
queues.h
rijndael.h
sha1.h
sql_common.h
sslopt-case.h
sslopt-longopts.h Bug#17208 SSL: client does not verify server certificate 2006-04-18 17:58:27 +02:00
sslopt-vars.h Bug#17208 SSL: client does not verify server certificate 2006-04-18 17:58:27 +02:00
t_ctype.h
thr_alarm.h Another long patch to remove the rest of the OS2 support. 2006-04-15 08:49:00 -07:00
thr_lock.h WL #2604: Partition Management 2006-01-17 08:40:00 +01:00
typelib.h
violite.h Some fixes that were not done in original merge, compilation revealed. 2006-05-11 04:11:50 +03:00