mariadb/sql
unknown 5d9f7edd6d Fix for bug #6266 "Invalid DATETIME value is not handled properly".
In server we assume that datetime values stored in MYSQL_TIME struct
are normalized (and year is not greater than 9999), so we should 
perform range checks in all places then we convert something to
MYSQL_TIME. 


include/my_time.h:
  Added one more argument to set_zero_time() function to make it more 
  convinient.
  Added comment clarifying why MAX_DATE_STRING_REP_LENGTH value is 30.
include/mysql_time.h:
  Documented MySQL's internal assumptions for members of MYSQL_TIME
  structure.
libmysql/libmysql.c:
  It does not make sense to set MYSQL_TIME::time_type twice in case of 
  errors.
mysql-test/r/type_datetime.result:
  Added test for bug #6266 "Invalid DATETIME value not handled properly".
mysql-test/t/type_datetime.test:
  Added test for bug #6266 "Invalid DATETIME value not handled properly".
sql-common/my_time.c:
  str_to_datetime(): Added missing check for too big year values.
  set_zero_time(): added time_type argument, since MYSQL_TIMESTAMP_NONE
    is not the value that we want in most cases.
sql/field.cc:
  Field_datetime::store_time():
    clarified why we don't perform any range checks here.
sql/item.cc:
  Item_param::set_time():
   Added comment describing this method and range checking for TIME
   values.
sql/sql_prepare.cc:
  Removed comments about range checking for TIME values in prepared 
  statements, which are no longer true.
  set_zero_time() has one more argument now.
tests/client_test.c:
  Added test for bug #6266 "Invalid DATETIME value not handled properly"
2004-11-15 15:44:29 +03:00
..
examples Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-10-20 02:55:03 +03:00
share Add GPL notice to a bunch of files. 2004-09-10 14:53:06 -05:00
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc Fixed many compiler warnings 2004-04-05 13:56:05 +03:00
des_key_file.cc
discover.cc WL1424 Multiple MySQL Servers: SHOW TABLES etc. should detect new and delete old tables. 2004-09-13 14:46:38 +02:00
field.cc Fix for bug #6266 "Invalid DATETIME value is not handled properly". 2004-11-15 15:44:29 +03:00
field.h Bug #6019 - SELECT tries to use too short prefix index on utf8 data 2004-10-26 20:31:41 +02:00
field_conv.cc Fix for bug #5915 "ALTER TABLE behaves differently when converting column 2004-10-07 13:02:39 +04:00
filesort.cc Fix for BUG#5117: 2004-09-13 06:14:25 +04:00
frm_crypt.cc
gen_lex_hash.cc Merge with 4.0 2004-09-01 04:12:09 +03:00
gstream.cc Fix for valgrind's warning 2004-03-15 16:32:53 +04:00
gstream.h Fix for valgrind's warning 2004-03-15 16:32:53 +04:00
ha_berkeley.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
ha_berkeley.h Fix for BUG#5117: 2004-09-13 06:14:25 +04:00
ha_heap.cc Fixed wrong range test code for HEAP tables. This caused a crash when doing a range test with a key that didn't have lower or upper bound (Bug #6082) 2004-10-23 03:30:27 +03:00
ha_heap.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_innodb.cc ha_innodb.cc: 2004-11-02 13:34:11 +02:00
ha_innodb.h Merge with 4.0 2004-10-27 19:52:41 +03:00
ha_isam.cc Support for TIMESTAMP columns holding NULL values. Unlike all other 2004-10-01 18:54:06 +04:00
ha_isam.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_isammrg.cc Support for TIMESTAMP columns holding NULL values. Unlike all other 2004-10-01 18:54:06 +04:00
ha_isammrg.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_myisam.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
ha_myisam.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_myisammrg.cc Support for TIMESTAMP columns holding NULL values. Unlike all other 2004-10-01 18:54:06 +04:00
ha_myisammrg.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_ndbcluster.cc A fix (bug #6331: INSERT IGNORE .. SELECT breaks subsequent inserts). 2004-11-02 19:48:37 +04:00
ha_ndbcluster.h Tru64 cxx compiler fix 2004-10-29 09:49:04 +00:00
handler.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
handler.h Merge 2004-10-03 21:39:04 +00:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc Portability fixes 2004-04-07 04:33:58 +03:00
item.cc Fix for bug #6266 "Invalid DATETIME value is not handled properly". 2004-11-15 15:44:29 +03:00
item.h Many files: 2004-11-02 16:02:12 +04:00
item_buff.cc
item_cmpfunc.cc Many files: 2004-11-02 16:02:12 +04:00
item_cmpfunc.h Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-10-14 18:06:38 +03:00
item_create.cc A fix according to Monty's request: 2004-10-29 17:00:39 +05:00
item_create.h Fix for bug #4508 "CONVERT_TZ() function with new time zone as param crashes server". 2004-08-10 12:42:31 +04:00
item_func.cc Many files: 2004-11-02 16:02:12 +04:00
item_func.h Many files: 2004-11-02 16:02:12 +04:00
item_geofunc.cc Fix for bug #6117 (Centroid() crashes server) 2004-10-22 20:32:02 +05:00
item_geofunc.h Additional fix for bug #5136 (Geometry object is corrupted when queried) 2004-09-22 22:36:53 +05:00
item_row.cc A small simplification: perform two actions at once, register a 2004-10-10 03:10:00 +04:00
item_row.h Deployment of centralized Item change registry, step 2: Item_ref 2004-10-08 19:13:09 +04:00
item_strfunc.cc Many files: 2004-11-02 16:02:12 +04:00
item_strfunc.h An extra "separator" class member was removed from Item_func_concat_ws. 2004-10-28 11:43:31 +05:00
item_subselect.cc removed incorrect error message about aggregate functions 2004-10-27 21:11:06 +03:00
item_subselect.h removed incorrect error message about aggregate functions 2004-10-27 21:11:06 +03:00
item_sum.cc A lot of fixes for prepared statements (PS): 2004-10-26 19:30:01 +03:00
item_sum.h A lot of fixes for prepared statements (PS): 2004-10-26 19:30:01 +03:00
item_timefunc.cc A fix according to Monty's request: 2004-10-29 17:00:39 +05:00
item_timefunc.h Bug #5228 ORDER BY CAST(enumcol) sorts incorrectly under certain conditions 2004-09-07 15:42:19 +05:00
item_uniq.cc
item_uniq.h DBUG_ASSERT(fixed == 1); added to val* 2004-03-18 15:14:36 +02:00
key.cc Bug#4594: column index make = failed for gbk, but like works 2004-08-23 20:12:39 +05:00
lex.h Fix for bug #4508 "CONVERT_TZ() function with new time zone as param crashes server". 2004-08-10 12:42:31 +04:00
lex_symbol.h
lock.cc Merge with 4.0 2004-10-20 16:24:28 +03:00
log.cc per Monty's request - "WARNING" and "NOTE" changed to lowercase (for not to shout :) 2004-09-15 18:54:57 +02:00
log_event.cc Fix for BUG#5705: "SET CHARATER_SET_SERVERetc will be lost if STOP SLAVE before following query": 2004-09-23 12:16:56 +02:00
log_event.h true,false -> TRUE, FALSE 2004-10-14 18:03:46 +03:00
Makefile.am logging_ok: 2004-09-15 20:41:49 +02:00
matherr.c
mf_iocache.cc merge with 4.0 2004-03-16 22:41:30 +02:00
my_lock.c
mysql_priv.h Merge with 4.0 2004-10-27 19:52:41 +03:00
mysqld.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-11-02 21:40:55 +02:00
mysqld_suffix.h New MYSQL_SERVER_SUFFIX usage (for easier compilation) 2004-05-25 02:28:44 +03:00
net_serv.cc Remove usage of !$ from mysql-tests 2004-11-02 20:13:27 +02:00
nt_servc.cc Merge with 4.0 2004-03-25 23:29:45 +02:00
nt_servc.h
opt_range.cc opt_range.cc, range.result, range.test: 2004-11-03 15:22:33 +04:00
opt_range.h handler interface cleanups: 2004-06-23 12:29:05 +02:00
opt_sum.cc opt_sum.cc: 2004-09-15 23:52:46 -07:00
password.c Remove stale declaration, fix a typo in comment. 2004-10-15 22:03:11 +04:00
procedure.cc
procedure.h
protocol.cc Remove usage of !$ from mysql-tests 2004-11-02 20:13:27 +02:00
protocol.h Remove usage of !$ from mysql-tests 2004-11-02 20:13:27 +02:00
protocol_cursor.cc
records.cc Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
repl_failsafe.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
repl_failsafe.h Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
set_var.cc Fixed access to freed memory 2004-10-27 21:56:17 +03:00
set_var.h Fix for bug #4508 "CONVERT_TZ() function with new time zone as param crashes server". 2004-08-10 12:42:31 +04:00
slave.cc few s/sql_print_error/sql_print_information/ 2004-09-08 10:45:50 +02:00
slave.h Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
spatial.cc Fix for bug #6117 (Centroid() crashes server) 2004-10-22 20:32:02 +05:00
spatial.h Fix compiler warnings (detected by Intel's C++ compiler) 2004-10-22 18:44:51 +03:00
sql_acl.cc sql_acl.cc: 2004-10-22 14:32:23 -05:00
sql_acl.h apply in SET PASSWORD same checks as in GRANT, to let only valid hashes through 2004-07-30 22:05:08 +02:00
sql_analyse.cc merged 2004-09-07 15:18:53 +02:00
sql_analyse.h
sql_base.cc Merge with 4.0 2004-10-27 19:52:41 +03:00
sql_bitmap.h Made my_snprintf() behavior snprintf() compatible when printing %x arguments (it should 2004-05-27 17:54:40 +04:00
sql_cache.cc Fixed access to freed memory 2004-10-27 21:56:17 +03:00
sql_cache.h Merge with 4.0 2004-10-27 19:52:41 +03:00
sql_class.cc A fix according to Monty's request: 2004-10-29 17:00:39 +05:00
sql_class.h Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-10-22 15:59:58 +04:00
sql_client.cc
sql_crypt.cc
sql_crypt.h
sql_db.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
sql_delete.cc Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
sql_derived.cc postreview fixes (BUG#5618 & BUG#5590) 2004-09-25 15:07:50 +03:00
sql_do.cc
sql_error.cc A lot of fixes for prepared statements (PS): 2004-10-26 19:30:01 +03:00
sql_handler.cc - Applied some Windows portability fixes for myisampack.c and sql_handler.cc 2004-10-27 21:51:27 +02:00
sql_help.cc true,false -> TRUE, FALSE 2004-10-14 18:03:46 +03:00
sql_insert.cc Fixed access to freed memory 2004-10-27 21:56:17 +03:00
sql_lex.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-10-14 18:06:38 +03:00
sql_lex.h A lot of fixes for prepared statements (PS): 2004-10-26 19:30:01 +03:00
sql_list.cc
sql_list.h Fix compiler warnings (detected by Intel's C++ compiler) 2004-10-22 18:44:51 +03:00
sql_load.cc Support for TIMESTAMP columns holding NULL values. Unlike all other 2004-10-01 18:54:06 +04:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc false/true -> FALSE/TRUE 2004-03-30 02:32:41 +03:00
sql_parse.cc Fix for bug#5551 (Version 4). 2004-11-03 18:23:58 +01:00
sql_prepare.cc Fix for bug #6266 "Invalid DATETIME value is not handled properly". 2004-11-15 15:44:29 +03:00
sql_rename.cc after merge fix 2004-08-20 22:54:42 +02:00
sql_repl.cc Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
sql_repl.h Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
sql_select.cc Review of all code pushed since last review 2004-10-20 01:28:42 +03:00
sql_select.h after review patch 2004-08-31 21:10:57 +03:00
sql_show.cc Remove usage of !$ from mysql-tests 2004-11-02 20:13:27 +02:00
sql_sort.h
sql_state.c
sql_string.cc fix call of string::copy() if HAVE_FCONVERT is set 2004-11-01 14:43:53 +00:00
sql_string.h A fix according to Monty's request: 2004-10-29 17:00:39 +05:00
sql_table.cc Fix for bug#5551 (Version 4). 2004-11-03 18:23:58 +01:00
sql_test.cc WL#1700 - Properly count key_blocks_used and key_blocks_current. 2004-05-03 15:55:21 +02:00
sql_udf.cc sql_print_error cleanup 2004-09-04 20:17:09 +02:00
sql_udf.h
sql_union.cc A lot of fixes for prepared statements (PS): 2004-10-26 19:30:01 +03:00
sql_update.cc After merge fixes 2004-10-07 10:50:13 +03:00
sql_yacc.yy An extra "separator" class member was removed from Item_func_concat_ws. 2004-10-28 11:43:31 +05:00
stacktrace.c Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
stacktrace.h
strfunc.cc Bug 6206: ENUMs are not case sensitive even if declared BINARY 2004-10-26 13:17:37 +05:00
structs.h Fix for Bug#4030 "Client side conversion string -> date type doesn't 2004-06-24 19:08:36 +04:00
table.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
table.h A fix and test case for Bug#6050 "EXECUTE stmt reports ambiguous field 2004-10-22 14:47:35 +04:00
thr_malloc.cc A fix according to Monty's request: 2004-10-29 17:00:39 +05:00
time.cc A fix and test case for Bug#6049 "Loss of sign when using prepared 2004-10-16 00:12:59 +04:00
tzfile.h WL#1264 "Per-thread time zone support infrastructure". 2004-06-18 10:11:31 +04:00
tztime.cc Fix for bug #6116 "SET time_zone := ... requires access to 2004-10-21 22:18:00 +04:00
tztime.h Fix for bug #6116 "SET time_zone := ... requires access to 2004-10-21 22:18:00 +04:00
udf_example.cc
uniques.cc
unireg.cc Fixed a copy-and-paste error: mysql_create_frm() should have 2004-07-29 10:33:33 +02:00
unireg.h MAX_KEY limit doubled (32->64) 2004-04-26 21:07:14 +02:00
watchdog_mysqld