mariadb/sql
unknown 2a49121590 Strict mode & better warnings
Under strict mode MySQL will generate an error message if there was any conversion when assigning data to a field.
Added checking of date/datetime fields.
If strict mode, give error if we have not given value to field without a default value (for INSERT)


client/mysqltest.c:
  Added --exit as an option to abort a test in a middle (good for debugging)
include/my_time.h:
  Added flags to allow checking of dates in strict mode
include/mysql_com.h:
  Added flag to check if field has a default value or not
include/mysqld_error.h:
  New error messages for strict mode
include/sql_state.h:
  Fixed SQL states (for strict mode tests)
mysql-test/r/auto_increment.result:
  Updated error messages
mysql-test/r/func_sapdb.result:
  Added test for ALLOW_INVALID_DATES
mysql-test/r/func_str.result:
  Updated error messages
mysql-test/r/func_time.result:
  Updated error messages
mysql-test/r/insert.result:
  Updated error messages
mysql-test/r/loaddata.result:
  Updated error messages
mysql-test/r/select.result:
  Updated error messages
mysql-test/r/sp.result:
  Updated error messages
mysql-test/r/timezone2.result:
  Updated error messages
mysql-test/r/type_datetime.result:
  Updated error messages
mysql-test/r/type_decimal.result:
  Updated error messages
mysql-test/r/type_float.result:
  Updated error messages
mysql-test/r/type_ranges.result:
  Updated error messages
mysql-test/r/type_time.result:
  Updated error messages
mysql-test/r/type_uint.result:
  Updated error messages
mysql-test/r/warnings.result:
  Updated error messages
mysql-test/t/func_sapdb.test:
  Aded test
sql-common/my_time.c:
  Added checking of dates
sql/field.cc:
  Better error messages
  Optimization of warning handling (by introducing of check_int())
  Changed to use my_strtoll10()
sql/field.h:
  Added check_int()
sql/item_func.cc:
  Warnings when dividing by NULL
sql/item_func.h:
  Warnings when dividing by NULL
sql/item_timefunc.cc:
  Testing of date/datetime
  Use macros instead of constants
sql/mysql_priv.h:
  New modes (part of strict mode)
sql/mysqld.cc:
  New modes (part of strict mode)
sql/opt_range.cc:
  Simple optimizations
sql/protocol.cc:
  Add note/warning level to find_handler()
sql/set_var.cc:
  Added mode 'traditional'
sql/share/czech/errmsg.txt:
  New error messages for strict mode
sql/share/danish/errmsg.txt:
  New error messages for strict mode
sql/share/dutch/errmsg.txt:
  New error messages for strict mode
sql/share/english/errmsg.txt:
  New error messages for strict mode
sql/share/estonian/errmsg.txt:
  New error messages for strict mode
sql/share/french/errmsg.txt:
  New error messages for strict mode
sql/share/german/errmsg.txt:
  New error messages for strict mode
sql/share/greek/errmsg.txt:
  New error messages for strict mode
sql/share/hungarian/errmsg.txt:
  New error messages for strict mode
sql/share/italian/errmsg.txt:
  New error messages for strict mode
sql/share/japanese/errmsg.txt:
  New error messages for strict mode
sql/share/korean/errmsg.txt:
  New error messages for strict mode
sql/share/norwegian-ny/errmsg.txt:
  New error messages for strict mode
sql/share/norwegian/errmsg.txt:
  New error messages for strict mode
sql/share/polish/errmsg.txt:
  New error messages for strict mode
sql/share/portuguese/errmsg.txt:
  New error messages for strict mode
sql/share/romanian/errmsg.txt:
  New error messages for strict mode
sql/share/russian/errmsg.txt:
  New error messages for strict mode
sql/share/serbian/errmsg.txt:
  New error messages for strict mode
sql/share/slovak/errmsg.txt:
  New error messages for strict mode
sql/share/spanish/errmsg.txt:
  New error messages for strict mode
sql/share/swedish/errmsg.txt:
  New error messages for strict mode
sql/share/ukrainian/errmsg.txt:
  New error messages for strict mode
sql/sp_rcontext.cc:
  Add note/warning level to find_handler()
sql/sp_rcontext.h:
  Add note/warning level to find_handler()
sql/sql_base.cc:
  Fix bug for detecting crashed table
sql/sql_class.cc:
  Variables for strct mode
sql/sql_class.h:
  Variables for strct mode
sql/sql_error.cc:
  In strict mode, convert warnings to errors
sql/sql_insert.cc:
  Strict mode
  If strict mode, give error if we have not given value to field without a default value
sql/sql_load.cc:
  Strict mode
sql/sql_parse.cc:
  Strict mode.
  Add flag to field if it doesn't have a default value
sql/sql_select.cc:
  Added comment
  Prepare for upper level handling of table->status
sql/sql_union.cc:
  Added THD to write_record()
sql/sql_update.cc:
  Strict mode
sql/table.cc:
  Handling of default values
sql/time.cc:
  Checking of dates
2004-09-28 20:08:00 +03:00
..
examples Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2004-08-23 13:47:52 +03:00
share Strict mode & better warnings 2004-09-28 20:08:00 +03: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 After merge fixes 2004-05-24 14:42:34 +03:00
field.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
field.h Strict mode & better warnings 2004-09-28 20:08:00 +03:00
field_conv.cc Bug#5081: UCS2 fields are filled with '0x2020' after extending field length 2004-08-19 11:59:33 +05:00
filesort.cc Added per thread status variables, after review, patch v1.1. 2004-09-13 16:48:01 +03:00
frm_crypt.cc
gen_lex_hash.cc Merge with 4.0 2004-09-01 04:12:09 +03:00
gstream.cc
gstream.h
ha_berkeley.cc Merge 2004-09-15 22:36:57 +03:00
ha_berkeley.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
ha_heap.cc Merge 2004-09-15 22:36:57 +03:00
ha_heap.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
ha_innodb.cc Merge 2004-09-15 22:36:57 +03:00
ha_innodb.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
ha_isam.cc Added some missing per status variables. 2004-09-15 22:13:55 +03: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 Added some missing per status variables. 2004-09-15 22:13:55 +03: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 Merge 2004-09-15 22:36:57 +03:00
ha_myisam.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
ha_myisammrg.cc Added per thread status variables, after review, patch v1.1. 2004-09-13 16:48:01 +03: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 Merge 2004-09-15 22:36:57 +03:00
ha_ndbcluster.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
handler.cc Removed wrong warnings in test suite (This was because select_insert / select_create results was not freed. 2004-09-17 03:08:23 +03:00
handler.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc Portability fixes 2004-04-07 04:33:58 +03:00
item.cc Removed wrong warnings in test suite (This was because select_insert / select_create results was not freed. 2004-09-17 03:08:23 +03:00
item.h Removed wrong warnings in test suite (This was because select_insert / select_create results was not freed. 2004-09-17 03:08:23 +03:00
item_buff.cc
item_cmpfunc.cc After merge fixes of merge with 4.1 that included the new arena code. 2004-09-09 06:59:26 +03:00
item_cmpfunc.h Merge with 4.1 2004-09-06 15:14:10 +03:00
item_create.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
item_create.h Merge with 4.1 2004-09-06 15:14:10 +03:00
item_func.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
item_func.h Strict mode & better warnings 2004-09-28 20:08:00 +03:00
item_geofunc.cc Final patch for WL#1600(warn if max_allowed_packet used) 2004-07-21 21:27:45 +05:00
item_geofunc.h
item_row.cc after merge 2004-08-26 18:22:22 +02:00
item_row.h
item_strfunc.cc Merge. 2004-09-13 18:12:44 +03:00
item_strfunc.h fixed open_and_lock_tables result processing (all open_and_lock_tables revision) 2004-08-31 10:06:38 +03:00
item_subselect.cc thd pointer fixed 2004-09-10 13:09:27 +03:00
item_subselect.h thd pointer fixed 2004-09-10 13:09:27 +03:00
item_sum.cc post merge fixes 2004-09-10 02:22:44 +03:00
item_sum.h Merge with 4.1 2004-09-06 15:14:10 +03:00
item_timefunc.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
item_timefunc.h Merge with 4.1 2004-09-06 15:14:10 +03:00
item_uniq.cc
item_uniq.h
key.cc Bug#4594: column index make = failed for gbk, but like works 2004-08-23 20:12:39 +05:00
lex.h Yet another manual merge with main tree for patch for WL#1218 "Triggers" 2004-09-09 19:52:10 +04:00
lex_symbol.h
lock.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
log.cc Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
log_event.cc Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
log_event.h Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
Makefile.am Yet another manual merge with main tree for patch for WL#1218 "Triggers" 2004-09-09 19:52:10 +04:00
matherr.c
mf_iocache.cc
my_lock.c
mysql_priv.h Strict mode & better warnings 2004-09-28 20:08:00 +03:00
mysqld.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
mysqld_suffix.h New MYSQL_SERVER_SUFFIX usage (for easier compilation) 2004-05-25 02:28:44 +03:00
net_serv.cc Added per thread status variables, after review, patch v1.1. 2004-09-13 16:48:01 +03:00
nt_servc.cc Merge with 4.0 2004-03-25 23:29:45 +02:00
nt_servc.h
opt_range.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
opt_range.h Fix and testcase for BUG#4984 2004-08-11 16:40:46 +04:00
opt_sum.cc Bug#4411 2004-08-11 23:24:36 +01:00
parse_file.cc Merge of changes from the main tree to tree for WL#1218 "Triggers". 2004-09-08 13:29:21 +04:00
parse_file.h WL#1218 "Triggers". Some very preliminary version of patch. 2004-09-07 16:29:46 +04:00
password.c check_scramble_323 shuold ensure that the scramble has the correct length 2004-06-01 23:58:33 +02:00
procedure.cc
procedure.h
protocol.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
protocol.h Microsoft VC++ won't compile class C { static const int I=1; }. 2004-08-28 10:32:27 +04:00
protocol_cursor.cc Fixed BUG#4941: Stored procedure crash fetching null value into variable. 2004-09-10 16:28:11 +02:00
records.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
repl_failsafe.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
repl_failsafe.h
set_var.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
set_var.h Merge with 4.1 2004-09-06 15:14:10 +03:00
slave.cc Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
slave.h Post-merge fixes. 2004-05-14 16:00:57 +02:00
sp.cc Fixed BUG#5000: SPs can be created with no default database. 2004-09-08 14:23:14 +02:00
sp.h Fixed BUG#3339: Stored procedures in nonexistent schemas are uncallable. 2004-06-15 15:42:28 +02:00
sp_cache.cc WL#1366: Use the schema (db) associated with an SP. 2004-03-22 14:44:41 +01:00
sp_cache.h WL#1366: Use the schema (db) associated with an SP. 2004-03-22 14:44:41 +01:00
sp_head.cc Fixed BUG#3294: Stored procedure crash if table dropped before use. 2004-09-10 11:11:52 +02:00
sp_head.h Fixed BUG#3294: Stored procedure crash if table dropped before use. 2004-09-10 11:11:52 +02:00
sp_pcontext.cc Fixed BUG#5287: Stored procedure crash if leave outside loop. 2004-09-02 17:24:25 +02:00
sp_pcontext.h Fixed BUG#5287: Stored procedure crash if leave outside loop. 2004-09-02 17:24:25 +02:00
sp_rcontext.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sp_rcontext.h Strict mode & better warnings 2004-09-28 20:08:00 +03:00
spatial.cc Merging 2004-06-02 19:17:35 +05:00
spatial.h Merging 2004-05-27 16:32:49 +05:00
sql_acl.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
sql_acl.h Merge with 4.1 2004-09-06 15:14:10 +03:00
sql_analyse.cc manually merged 2004-08-18 19:57:55 +02:00
sql_analyse.h
sql_base.cc Strict mode & better warnings 2004-09-28 20:08:00 +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 VIEW 2004-07-16 01:15:55 +03:00
sql_cache.h
sql_class.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_class.h Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_client.cc
sql_crypt.cc
sql_crypt.h
sql_db.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
sql_delete.cc Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 2004-09-10 02:26:09 +03:00
sql_derived.cc memory leaks fixed 2004-09-04 23:05:12 +03:00
sql_do.cc
sql_error.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_handler.cc Merge 2004-09-10 14:01:02 +03:00
sql_help.cc Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
sql_insert.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_lex.cc Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 2004-09-10 02:26:09 +03:00
sql_lex.h table lists management during VIEW processing code cleanup 2004-09-11 23:52:55 +03:00
sql_list.cc
sql_list.h Merge with 4.1 2004-09-06 15:14:10 +03:00
sql_load.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc VIEW 2004-07-16 01:15:55 +03:00
sql_parse.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_prepare.cc Added options --auto-increment-increment and --auto-increment-offset. 2004-09-15 22:10:31 +03:00
sql_rename.cc Merge with 4.1 2004-09-06 15:14:10 +03:00
sql_repl.cc Port of cursors to be pushed into 5.0 tree: 2004-08-03 03:32:21 -07:00
sql_repl.h Merge 4.1 -> 5.0. 2004-04-07 19:07:44 +02:00
sql_select.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_select.h Removed wrong warnings in test suite (This was because select_insert / select_create results was not freed. 2004-09-17 03:08:23 +03:00
sql_show.cc Merge. 2004-09-13 18:12:44 +03:00
sql_sort.h
sql_state.c
sql_string.cc Merge with 4.1.3-beta 2004-07-07 11:29:39 +03:00
sql_string.h Merge with 4.1 2004-09-06 15:14:10 +03:00
sql_table.cc Removed wrong warnings in test suite (This was because select_insert / select_create results was not freed. 2004-09-17 03:08:23 +03:00
sql_test.cc Added per thread status variables, after review, patch v1.1. 2004-09-13 16:48:01 +03:00
sql_trigger.cc After merge fixes for WL#1218 "Triggers" 2004-09-09 23:44:27 +04:00
sql_trigger.h WL#1218 "Triggers". Some very preliminary version of patch. 2004-09-07 16:29:46 +04:00
sql_udf.cc
sql_udf.h
sql_union.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_update.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
sql_view.cc table lists management during VIEW processing code cleanup 2004-09-11 23:52:55 +03:00
sql_view.h sending right error message where VIEW is not expected (BUG#4606) 2004-08-24 15:37:51 +03:00
sql_yacc.yy Merge. 2004-09-13 18:12:44 +03:00
stacktrace.c
stacktrace.h
strfunc.cc
structs.h Added per thread status variables, after review, patch v1.1. 2004-09-13 16:48:01 +03:00
table.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
table.h Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 2004-09-10 02:26:09 +03:00
thr_malloc.cc
time.cc Strict mode & better warnings 2004-09-28 20:08:00 +03:00
tzfile.h WL#1264 "Per-thread time zone support infrastructure". 2004-06-18 10:11:31 +04:00
tztime.cc After merge fixes of merge with 4.1 that included the new arena code. 2004-09-09 06:59:26 +03:00
tztime.h After merge fixes of merge with 4.1 that included the new arena code. 2004-09-09 06:59:26 +03:00
udf_example.cc
uniques.cc
unireg.cc After merge fixes of merge with 4.1 that included the new arena code. 2004-09-09 06:59:26 +03:00
unireg.h VIEW 2004-07-16 01:15:55 +03:00
watchdog_mysqld