mariadb/storage
Michael Widenius fa36a7426b Fixed lp:879939 "assertion in ha_maria::enable_indexes with derived_with_keys=on"
Honor unique/not unique when creating keys for internal tempory tables.
Added new variables to be used to limit how keys are created for internal temporary tables.


include/maria.h:
  Added maria_max_key_length() and maria_max_key_segments()
include/myisam.h:
  Added myisam_max_key_length() and myisam_max_key_segments()
mysql-test/r/mysql.result:
  Drop all used tables
mysql-test/r/subselect4.result:
  Added test case for lp:879939
mysql-test/t/mysql.test:
  Drop all used tables
mysql-test/t/subselect4.test:
  Added test case for lp:879939
sql/mysql_priv.h:
  Added internal_tmp_table_max_key_length and internal_tmp_table_max_key_segments to be used to limit how keys for derived tables are created.
sql/mysqld.cc:
  Added internal_tmp_table_max_key_length and internal_tmp_table_max_key_segments to be used to limit how keys for derived tables are created.
sql/share/errmsg.txt:
  Added new error message for internal errors
sql/sql_select.cc:
  Give error if we try to create a wrong key (this error should never happen)
  Honor unique/not unique when creating keys for internal tempory tables.
storage/maria/ha_maria.cc:
  Added change_table_ptr() to ensure that external_ref points always to the correct table.
  (Not having this caused an assert in the included test)
storage/maria/ha_maria.h:
  Added change_table_ptr() to ensure that external_ref points always to the correct table.
storage/maria/ma_check.c:
  Fixed bug in Duplicate key error printing (now row position is printed correctly)
storage/maria/ma_create.c:
  maria_max_key_length() -> _ma_max_key_length()
storage/maria/ma_info.c:
  Added extern function maria_max_key_length() to calculate the max key length based on current block size.
storage/maria/ma_open.c:
  maria_max_key_length() -> _ma_max_key_length()
storage/maria/maria_def.h:
  maria_max_key_length() -> _ma_max_key_length()
storage/myisam/ha_myisam.cc:
  Added change_table_ptr() to ensure that external_ref points always to the correct table.
  (Not having this caused an assert in the included test)
storage/myisam/ha_myisam.h:
  Added change_table_ptr() to ensure that external_ref points always to the correct table.
2011-10-26 20:25:18 +03:00
..
archive remove unnecessary define 2011-10-10 15:38:11 +02:00
blackhole merge with 5.1 2011-10-07 00:18:30 +02:00
csv merge with 5.1 2011-10-07 00:18:30 +02:00
example small enhancement of the create table options feature: 2011-05-10 18:19:11 +02:00
federated Merge with 5.1 2011-01-12 17:38:13 +02:00
federatedx Merge with 5.2 2011-03-09 15:47:59 +02:00
heap merge 2011-10-11 12:55:42 +02:00
ibmdb2i Fixed typos 2011-01-07 13:45:59 +02:00
innobase merge 2011-10-11 12:55:42 +02:00
innodb_plugin merge 2011-10-11 12:55:42 +02:00
maria Fixed lp:879939 "assertion in ha_maria::enable_indexes with derived_with_keys=on" 2011-10-26 20:25:18 +03:00
myisam Fixed lp:879939 "assertion in ha_maria::enable_indexes with derived_with_keys=on" 2011-10-26 20:25:18 +03:00
myisammrg merge 2011-10-11 12:55:42 +02:00
ndb merge with 5.1 2011-10-07 00:18:30 +02:00
oqgraph Detect Boost installation and build OQGRAPH when possible. For now, disable oqgraph on x64 until 2011-04-10 22:48:28 -07:00
pbxt Compiler warning about assigned but not used variables fixed. 2011-10-18 13:44:12 +03:00
sphinx Compiler warning about assigned but not used variables fixed. 2011-10-18 13:44:12 +03:00
xtradb Compiler warning about assigned but not used variables fixed. 2011-10-18 13:44:12 +03:00
Makefile.am Merge with MySQL 5.1.50 2010-08-27 17:12:44 +03:00
mysql_storage_engine.cmake merge with 5.1 2011-10-07 00:18:30 +02:00