1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-30 05:23:50 +03:00
Files
mariadb/mysql-test/r
Michael Widenius d15b3386db Fix for MDEV-5531: double call procedure in one session - hard shutdown the server
Main fix was to not cache derivied tables as they may be temporary tables that are deleted before the next query.
This was a bit tricky as Item_field::fix_fields depended on cached_tables to be set to resolve some columns.



mysql-test/r/sp-bugs.result:
  Added test case
mysql-test/t/sp-bugs.test:
  Added test case
sql/item.cc:
  Fixed fix_outer_field to handle case where found field did not have in cached_table
  Idea is that if cached_table is not avaliable, use from_field->table->pos_in_table_list instead
sql/records.cc:
  Also accept INTERNAL_TMP_TABLE for memmap
sql/sql_base.cc:
  More DBUG_PRINT
  Fixed that setup_natural_join_row_types() is not run twice.
  Original code modified context->first_name_resolution_table also for second executions.
  This was wrong as this could give wrong results if some joins had been optimized away between calls.
sql/sql_derived.cc:
  Mark derived tables as internal temporary tables (INTERNAL_TMP_TABLE), not as NON_TRANSACTIONAL_TMP_TABLE.
  This is more correct as the tables are not visible by the end user.
sql/sql_insert.cc:
  Reset pos_in_table_list before calling fix_fields.
  One of the consequences of the change of not caching all generated tables in Item_ident is that
  pos_in_table_list needs to be correct in calls to fix_fields.
sql/sql_lex.cc:
  More DBUG_PRINT
sql/sql_parse.cc:
  Don't cache derivied tables as they may be temporary tables that are deleted before the next query
sql/sql_select.cc:
  Reset table_vector. This was required as some code checked the vector to see if temporary tables had already been created.
sql/table.cc:
  Mark tables with field translations as cacheable (as these will not disapper between stmt executions.
2014-01-24 14:50:18 +02:00
..
2011-12-12 23:58:40 +01:00
2012-03-09 08:06:59 +01:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2012-02-29 21:18:50 +01:00
2012-08-27 18:13:17 +02:00
2013-07-08 16:49:42 +04:00
2011-12-12 23:58:40 +01:00
2012-08-24 13:57:39 +02:00
2012-01-13 15:50:02 +01:00
2011-12-12 23:58:40 +01:00
2013-09-13 12:06:17 +04:00
2011-11-27 17:46:20 +01:00
2013-05-08 13:36:17 +04:00
2013-09-13 12:06:17 +04:00
2011-12-12 23:58:40 +01:00
2012-03-06 20:46:07 +01:00
2012-01-13 15:50:02 +01:00
2012-11-22 10:19:31 +01:00
2014-01-15 16:07:50 +02:00
2013-12-13 13:00:38 +01:00
2013-10-13 13:43:29 -07:00
2013-11-19 13:16:25 +01:00
2013-05-21 09:42:10 +02:00
2012-01-13 15:50:02 +01:00
2012-08-31 14:15:52 +02:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2012-08-28 16:03:22 +04:00
2013-01-25 11:24:42 +01:00
2012-09-09 01:22:06 +03:00
2012-04-10 08:28:13 +02:00
2011-12-12 23:58:40 +01:00
2012-01-13 15:50:02 +01:00
2012-05-21 20:54:41 +02:00
2013-05-07 13:05:09 +02:00
2013-03-27 10:03:28 +01:00
2012-05-21 20:54:41 +02:00
2013-05-07 13:05:09 +02:00
2013-08-08 11:48:49 +04:00
2013-09-06 22:31:30 +02:00
2012-06-20 15:01:28 +04:00
2013-12-02 15:50:35 +04:00
2012-05-04 07:16:38 +02:00
2013-03-27 10:03:28 +01:00
2011-12-12 23:58:40 +01:00
2012-01-13 15:50:02 +01:00
2013-09-06 22:31:30 +02:00
2012-02-15 18:08:08 +01:00
2013-02-28 22:47:29 +01:00
2013-08-30 11:25:49 +02:00
2013-05-04 13:05:24 +04:00
2011-11-27 17:46:20 +01:00
2013-11-21 21:40:43 -08:00
2013-11-21 21:40:43 -08:00
2013-08-28 09:14:57 -07:00
2012-02-21 20:51:56 +01:00
2012-08-28 16:03:22 +04:00
2013-01-15 19:07:46 +01:00
2012-02-24 14:37:00 +01:00
2012-10-16 13:04:42 +02:00
2013-01-15 19:16:18 +01:00
2013-07-08 16:49:42 +04:00
2012-01-05 00:02:57 +01:00
2013-12-13 13:00:38 +01:00
2013-02-28 22:47:29 +01:00
2013-04-16 17:33:47 +02:00
2012-10-18 23:33:06 +02:00
2013-09-06 22:31:30 +02:00
2012-01-13 15:50:02 +01:00
2012-06-20 13:41:31 +04:00
2013-10-13 13:43:29 -07:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2013-07-08 16:49:42 +04:00
2012-07-13 22:17:32 +03:00
2013-07-08 16:49:42 +04:00
2011-12-12 23:58:40 +01:00
2012-01-16 20:16:35 +01:00
2013-09-06 22:31:30 +02:00
2013-07-08 16:49:42 +04:00
2013-05-07 13:05:09 +02:00
2014-01-22 15:29:36 +01:00
2013-11-19 13:16:25 +01:00
2011-12-12 23:58:40 +01:00
2013-09-06 22:31:30 +02:00
2012-01-24 01:59:03 +01:00
2012-10-11 12:09:21 +03:00
2013-03-29 17:53:21 +02:00
2011-12-12 23:58:40 +01:00
2013-12-13 13:00:38 +01:00
2011-12-11 11:34:44 +02:00
2013-08-18 19:58:51 -07:00
2012-11-22 10:19:31 +01:00
2013-08-18 19:58:51 -07:00
2011-12-12 23:58:40 +01:00
2013-02-20 18:01:36 -08:00
2013-11-21 21:40:43 -08:00
2013-11-21 21:40:43 -08:00
2011-12-11 11:34:44 +02:00
2013-11-21 21:40:43 -08:00
2012-01-13 15:50:02 +01:00
2011-12-12 23:58:40 +01:00
2012-02-15 18:08:08 +01:00
2011-12-12 23:58:40 +01:00
2013-01-15 19:13:32 +01:00
2012-04-10 08:28:13 +02:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2012-01-13 15:50:02 +01:00
2012-01-13 15:50:02 +01:00
2013-06-18 13:14:46 +04:00
2013-09-06 10:34:38 -07:00
2013-02-28 22:47:29 +01:00
2013-02-28 22:47:29 +01:00
2013-11-21 21:40:43 -08:00
2013-11-13 13:38:37 +01:00
2013-11-21 21:40:43 -08:00
2013-02-28 22:47:29 +01:00
2013-11-21 21:40:43 -08:00
2013-11-21 21:40:43 -08:00
2013-11-21 21:40:43 -08:00
2013-11-21 21:40:43 -08:00
2012-04-07 15:58:46 +02:00
2013-10-14 12:08:55 -07:00
2013-10-14 12:08:55 -07:00
2013-10-14 12:08:55 -07:00
2013-11-21 21:40:43 -08:00
2011-12-28 18:47:01 -08:00
2013-12-02 15:17:21 +04:00
2011-12-12 23:58:40 +01:00
2012-08-22 16:45:25 +02:00
2013-08-22 16:23:54 +04:00
2013-06-17 20:33:36 +03:00
2013-11-21 21:40:43 -08:00
2011-12-12 23:58:40 +01:00
2013-03-10 12:46:56 +01:00
2011-12-11 11:34:44 +02:00
2012-01-13 15:50:02 +01:00
2013-11-21 13:09:08 +04:00
2012-02-24 14:37:00 +01:00
2013-01-23 15:18:05 -08:00
2011-12-12 23:58:40 +01:00
2013-12-13 13:00:38 +01:00
2013-05-08 13:36:17 +04:00
2013-02-28 22:47:29 +01:00
2013-05-08 13:36:17 +04:00
2012-01-13 15:50:02 +01:00
2014-01-15 16:07:50 +02:00
2011-12-12 23:58:40 +01:00
2012-04-10 08:28:13 +02:00