summaryrefslogtreecommitdiff
path: root/mysql-test/main/information_schema.result
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-24868 Server crashes in optimize_schema_tables_memory_usage after ↵Nayuta Yanagisawa2021-03-081-0/+7
| | | | | | | | | | | | select from information_schema.innodb_sys_columns optimize_schema_tables_memory_usage() crashed when its argument included TABLE struct that was not fully initialized. To prevent such a crash, we check if a table is an information schema table at the beginning of each iteration. Closes #1768
* MDEV-24929 Server crash in thr_multi_unlock or in get_schema_tables_resultMonty2021-02-221-0/+13
| | | | | | | | | | | | | | | | | This was caused by two different bugs: 1) Information_schema tables where not locked by lock_tables, but get_lock_data() was not filtering these out. This caused a crash when mysql_unlock_some_tables() tried to unlock tables early, including not locked information schema tables. Fixed by not locking SYSTEM_TMP_TABLES 2) In some cases the optimizer will notice that we do not need to read the information_schema tables at all. In this case join_tab->read_record is not set, which caused a crash in get_schema_tables_result() Fixed by ignoring const tables in get_schema_tables_result()
* Merge branch '10.2' into 10.3Sergei Golubchik2021-02-011-0/+12
|
* MDEV-24593 Signal 11 when group by primary key of table joined to ↵Sergei Golubchik2021-01-221-0/+9
| | | | | | | | | | | | | | | information_schema.columns I_S tables were materialized too late, an attempt to use table statistics before the table was created caused a crash. Let's move table creation up. it only needs read_set to be calculated properly, this happens in JOIN::optimize_inner(), after semijoin transformation. Note that tables are not populated at that point, so most of the statistics would make no sense anyway. But at least field sizes will be correct. And it won't crash.
* Merge branch '10.2' into 10.3Oleksandr Byelkin2020-12-231-1/+2
|
* MDEV-24230 subquery on information_schema fails with error messageSergei Golubchik2020-11-251-2/+7
| | | | | | | | | disable thd->count_cuted_fields when populating internal temporary tables for I_S, because this is how SELECT works standalone. And if the SELECT is a part of INSERT or UPDATE or RETURN or SET or anything else that enables thd->count_cuted_fields, this counting should only apply when storing the result of the SELECT in a field or a variable, not when populating internal temporary tables for I_S.
* Work around MDEV-23445 in the MDEV-14836 test caseMarko Mäkelä2020-08-111-5/+3
|
* Merge 10.2 into 10.3Marko Mäkelä2020-08-101-0/+15
|
* MDEV-21201 No records produced in information_schema query, depending on ↵Oleksandr Byelkin2020-07-311-0/+64
| | | | | | | | | | | projection In case of NATURAL JOIN / USING mark all field (one table can not be opened in any case so optimisation does not worth it). IMHO table should be checked for used fields and filled after prepare, when we will fave whole info about used fields but it is too big change for a bugfix. Which will be made later by Serg patch
* Merge 10.2 into 10.3Marko Mäkelä2020-07-021-0/+10
|
* MDEV-20076: SHOW GRANTS does not quote role names properlybb-10.3-MDEV-20076Oleksandr Byelkin2020-02-051-7/+7
| | | | Quotes added to output.
* MDEV-17655 Inconsistent grant-name usage between grant-statement and ↵Aleksey Midenkov2019-05-021-1/+1
| | | | | | privilege tables Closes #1044
* MDEV-14474 information_schema.check_constraintsAnel Husakovic2018-08-251-0/+2
| | | | | | Implement according to standard SQL specification 2008. The check_constraints table is used for fetching metadata about the constraints defined for tables in all databases.
* Merge branch '10.2' into 10.3Sergei Golubchik2018-06-301-1/+1
|
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+2191