mariadb/handler
marko 75fe6fa6a4 branches/zip: When creating an index in innodb_strict_mode, check that
the maximum record size will never exceed the B-tree page size limit.
For uncompressed tables, there should always be enough space for two
records in an empty B-tree page.  For compressed tables, there should
be enough space for storing two node pointer records or one data
record in an empty page in uncompressed format.

dict_build_table_def_step(): Remove the inaccurate check for table row
size.

dict_index_too_big_for_tree(): New function: check if the index
records would be too big for a B-tree page.

dict_index_add_to_cache(): Add the parameter "strict".  Invoke
dict_index_too_big_for_tree() if it is set.

trx_is_strict(), thd_is_strict(): New functions, for determining if
innodb_strict_mode is enabled for the current transaction.

dict_create_index_step(): Pass the new parameter strict of
dict_index_add_to_cache() as trx_is_strict(trx).  All other callers
pass it as FALSE.

innodb.test: Enable innodb_strict_mode before attempting to create a
table with a too big record size.

innodb-zip.test: Remove the test of inserting random data.  Add tests
for checking that the maximum record lengths are enforced at table
creation time.
2008-09-18 12:31:17 +00:00
..
ha_innodb.cc branches/zip: When creating an index in innodb_strict_mode, check that 2008-09-18 12:31:17 +00:00
ha_innodb.h branches/zip: Merge 2295:2367 from branches/5.1. 2008-03-17 14:09:44 +00:00
handler0alter.cc branches/zip: ha_innobase::prepare_drop_index(): When there is a 2008-09-09 11:05:56 +00:00
i_s.cc branches/zip: 2008-05-06 11:10:09 +00:00
i_s.h branches/zip: Rename the compression-related INFORMATION_SCHEMA tables 2008-03-28 10:31:24 +00:00
mysql_addons.cc branches/zip: Add the necessary #include "univ.i" that was removed in the 2008-02-08 13:50:28 +00:00