mariadb/scripts
unknown 1b6b7010a6 Bug#32633 Can not create any routine if SQL_MODE=no_engine_substitution
The problem is that one can not create a stored routine if sql_mode
contains NO_ENGINE_SUBSTITUTION or PAD_CHAR_TO_FULL_LENGTH. Also when
a event is created, the mode is silently lost if sql_mode contains one
of the aforementioned.  This was happening because the table definitions
which stored sql_mode values weren't being updated to accept new values
of sql_mode.

The solution is to update, in a backwards compatible manner, the various
table definitions (columns) that store the sql_mode value to take into
account the new possible values. One incompatible change is that if a event
that is being created can't be stored to the mysql.event table, an error
will be raised.

The tests case also ensure that new SQL modes will be added to the mysql.proc
and mysql.event tables, otherwise the tests will fail.


mysql-test/r/events_bugs.result:
  Add test case result for Bug#32633
mysql-test/r/information_schema.result:
  Update the sql_mode column definition.
mysql-test/r/sp.result:
  Add test case result for Bug#32633
mysql-test/r/system_mysql_db.result:
  Update the sql_mode column definition.
mysql-test/t/events_bugs.test:
  Add test case for Bug#32633
mysql-test/t/sp.test:
  Add test case for Bug#32633
mysql-test/t/system_mysql_db_fix50117.test:
  Update the sql_mode column definition.
scripts/mysql_system_tables.sql:
  Update the sql_mode column definition.
scripts/mysql_system_tables_fix.sql:
  Update the sql_mode column definition.
sql/event_db_repository.cc:
  Reset and restore SQL modes when storing and loading a
  event from the data dictionary. Also throw out a error
  if a store fails.
sql/mysqld.cc:
  Add warning to avoid this problem in the future.
sql-common/my_user.c:
  Truncate length if user name or host name does not fit
  in the buffer.
sql/sp.cc:
  SQL mode of the thread must not effect data dictionary operations.
2008-02-07 08:47:39 -02:00
..
.cvsignore
CMakeLists.txt CMakeLists.txt, README, configure.js 2007-08-03 21:51:37 +02:00
comp_sql.c Add "name of struct" as first arg to comp_sql 2007-04-23 14:01:48 +02:00
fill_help_tables.sql More changes to reflect the removal of manual.texi from the sources: 2005-04-13 18:29:23 +02:00
make_binary_distribution.sh make_binary_distribution.sh: 2007-10-01 18:41:38 +02:00
make_sharedlib_distribution.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
make_win_bin_dist Merge polly.(none):/home/kaa/src/opt/bug32221/my50-bug31445 2007-11-22 17:17:32 +03:00
Makefile.am Merge trift2.:/MySQL/M51/bug31644-5.1 2007-10-19 19:22:27 +02:00
msql2mysql.sh gen_lex_hash.cc: 2007-01-31 00:06:42 +01:00
mysql_config.sh Merge ramayana.hindu.god:/home/tsmith/m/bk/51 2007-09-28 10:55:28 -06:00
mysql_convert_table_format.sh Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mysql_find_rows.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql_fix_extensions.sh
mysql_fix_privilege_tables.sh Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysql_install_db.sh Bug #33192: mysql_install_db bad merge, corrupt code == appears to succeed but does nothing 2007-12-12 19:14:28 -07:00
mysql_secure_installation.sh Merge mysql.com:/home/kent/bk/tmp/mysql-4.1-build 2007-01-01 05:31:23 +01:00
mysql_setpermission.sh Option 6 tries to grant global privileges at the database level 2007-08-01 11:58:25 +02:00
mysql_system_tables.sql Bug#32633 Can not create any routine if SQL_MODE=no_engine_substitution 2008-02-07 08:47:39 -02:00
mysql_system_tables_data.sql Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build 2007-12-10 12:16:41 +01:00
mysql_system_tables_fix.sql Bug#32633 Can not create any routine if SQL_MODE=no_engine_substitution 2008-02-07 08:47:39 -02:00
mysql_test_data_timezone.sql Bug#20166 mysql-test-run.pl does not test system privilege tables creation 2007-02-26 11:49:24 +01:00
mysql_zap.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysqlaccess.conf
mysqlaccess.sh BUG#24780 workaround for broken installations that depend on using /etc, but were configured differently 2007-01-09 09:32:56 +01:00
mysqlbug.sh Modify "mysqlbug" ("scripts/mysqlbug.sh") so that it differs between the original 2007-10-18 12:03:30 +02:00
mysqld_multi.sh Bug #27390: mysqld_multi --config-file= not working as documented 2007-04-28 01:27:54 +02:00
mysqld_safe.sh Merge zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-maint 2007-10-08 12:40:21 -04:00
mysqldumpslow.sh Search through options to find where the slow query log actually is. 2006-12-18 21:12:01 -08:00
mysqlhotcopy.sh Bug #27694: mysqlhotcopy & p5-DBD-mysql51-4.003 2007-08-20 11:00:51 -06:00