1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/mysql-test/r
unknown 78422442df Preparatory (and the most problematic) patch for Bug#7306
"the server side preparedStatement error for LIMIT placeholder",
which moves all uses of LIMIT clause from PREPARE to OPTIMIZE
and later steps.
After-review fixes.


mysql-test/r/group_min_max.result:
  Test results fixed for EXPLAINs when using GROUP_MIN_MAX access plan.
sql/item_subselect.cc:
  Move setting of the internal LIMIT used for IN/ALL/ANY/EXISTS 
  subqueries to one place: Item_exists_subselect::fix_length_and_dec().
  This implies that unit->select_limit_cnt is not set until the item is 
  fixed. This is OK, as now LIMIT values are not used until JOIN::optimize.
sql/mysql_priv.h:
  setup_tables no longer needs a special flag for the case when
  it's called from JOIN::reinit() (we don't need to call setup_tables
  between two executions of a correlated subquery).
sql/opt_range.cc:
  Fix a glitch in GROUP_MIN_MAX access plan: we should use table metadata,
  not field data, to evaluate max_used_key_length, which is then
  used for explain.
sql/sp.cc:
  - setup_tables signature changed.
sql/sql_base.cc:
  - setup_tables no longer needs a special mode for subqueries.
    Unused checks were removed.
sql/sql_delete.cc:
  - setup_tables signature changed
sql/sql_help.cc:
  - setup_tables signature changed
sql/sql_insert.cc:
  - setup_tables signature changed
sql/sql_lex.cc:
  Consolidate setting of internal LIMIT for IN/ALL/ANY/EXISTS subqeries
  in one place, and hence remove it from st_select_lex::test_limit().
sql/sql_lex.h:
  Cleanup signature of st_select_lex_unit::init_prepare_fake_select_lex().
sql/sql_load.cc:
  - setup_tables signature changed
sql/sql_olap.cc:
  - setup_tables signature changed
sql/sql_parse.cc:
  - st_select_lex_unit::set_limit() signature changed
sql/sql_select.cc:
  Move setting of JOIN::select_limit from JOIN::prepare
  to JOIN::optimize. At prepare, limit is unknown yet.
  Remove excessive cleanups from JOIN::reinit which were overwriting
  join->join_tab[i]->table->used_keys. This fixes the bug which was triggered
  by the change in item_subselect.cc.
sql/sql_union.cc:
  Class st_select_lex_unit was changed to avoid calls to 
   st_select_lex_unit::set_limit from places where it may be unknown.
  Now unit->select_limit_cnt is set at ::exec(). 
  st_select_lex_unit::init_prepare_fake_select_lex(): 
   - move out set_limit functionality
   - remove a few lines of dead code.
  st_select_lex_unit::prepare():
    - now we don't call set_limit at the time of prepare, so the value  
      of unit->select_limit_cnt may be unknown here. Use sl->select_limit
      instead.
  st_select_lex_unit::exec():
    - cleanup
    - call set_limit explicitly as it has been moved out of 
     init_prepare_fake_select_lex.
sql/sql_update.cc:
  - setup_tables signature changed
2005-05-30 20:54:37 +04:00
..
2005-05-16 15:21:35 +03:00
2005-04-28 11:05:44 +02:00
2005-05-14 18:31:22 +03:00
2005-04-30 18:40:08 +03:00
2005-05-07 16:50:22 +01:00
2005-04-11 15:11:52 +05:00
2005-05-05 10:36:17 -07:00
2005-01-15 14:09:45 +02:00
2005-04-04 17:55:12 +05:00
2005-05-14 12:38:12 +04:00
2005-01-15 14:09:45 +02:00
2005-05-09 11:28:57 -07:00
2005-02-15 21:03:17 -08:00
2005-02-22 15:47:00 +02:00
2005-03-09 19:22:30 +01:00
2005-01-04 13:46:53 +02:00
2005-04-05 19:45:34 -07:00
2005-03-23 19:18:25 +01:00
2005-05-18 13:54:36 -07:00
2005-04-05 19:45:34 -07:00
2004-12-16 16:44:40 +02:00
2005-05-05 10:36:17 -07:00
2005-05-14 18:31:22 +03:00
2005-05-14 18:31:22 +03:00
2004-11-22 21:33:15 +01:00
2005-04-11 22:36:07 +02:00
2005-04-05 19:45:34 -07:00
2005-05-24 15:52:48 +01:00
2005-05-18 13:54:36 -07:00
2005-05-18 11:06:34 -07:00
2005-05-18 15:40:34 -07:00
2005-05-19 20:38:48 +02:00
2005-01-07 11:55:20 +01:00
2004-12-31 15:26:24 +01:00
2005-01-09 11:00:37 +01:00
2004-11-26 15:27:45 +00:00
2005-05-04 10:16:03 +02:00
2005-04-01 22:14:30 +02:00
2005-04-21 10:59:21 +02:00
2005-05-18 11:06:34 -07:00
2005-04-01 00:03:26 +05:00
2005-04-05 19:45:34 -07:00
2005-05-14 16:24:36 +03:00
2005-05-14 14:42:25 +04:00
2005-05-02 11:45:06 -07:00
2005-05-21 06:11:44 -07:00
2005-04-05 19:45:34 -07:00
2005-03-16 04:32:47 +03:00
2005-03-16 23:47:38 +01:00
2005-02-24 17:25:06 +01:00
2005-05-24 22:31:57 +01:00
2005-01-31 13:18:36 +00:00
2005-04-01 00:03:26 +05:00
2005-04-06 18:19:05 +02:00
2005-05-24 22:31:57 +01:00
2005-03-23 19:18:25 +01:00
2005-03-01 14:50:59 +02:00
2005-05-19 20:54:37 +02:00
2005-05-09 02:06:18 +03:00
2005-03-16 15:26:07 +02:00
2005-05-20 16:31:46 +03:00
2005-03-03 15:01:46 -08:00
2005-05-07 08:25:58 -07:00
2004-11-12 17:44:17 +02:00
2005-05-24 22:19:33 +04:00
2005-02-05 08:54:13 -08:00
2005-05-07 08:25:58 -07:00
2005-02-28 12:18:39 +02:00
2005-04-18 05:21:44 +04:00
2005-05-02 11:45:06 -07:00
2005-05-17 17:08:43 +02:00
2005-04-05 19:45:34 -07:00
2005-04-04 00:50:05 +02:00