summaryrefslogtreecommitdiff
path: root/mysql-test/r
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-10047: table-based master info repositorySujatha2020-03-131-0/+33
| | | | | | | | | | | | | | Problem: ======= When we upgrade from "mysql" to "mariadb" if slave is using repositories as tables their data is completely ignored and no warning is issued in error log. Fix: === "mysql_upgrade" test should check for the presence of data in "mysql.slave_master_info" and "mysql.slave_relay_log_info" tables. When tables have some data the upgrade script should report a warning which hints users that the data in repository tables will be ignored.
* Minor cleanup of main.partition_innodbMarko Mäkelä2020-03-091-6/+6
| | | | | | | | Stop masking the Data_free values, because innodb_file_per_table=1 is the default. Also, do mask Update_time after updating tables, even though for some reason it does appear to matter.
* MDEV-21758 : Events switched randomly to SLAVESIDE_DISABLEDJan Lindström2020-03-091-0/+27
| | | | | | Change events only on Galera environment where idea is that event is enabled only on one node of the cluster and nodes are identified by server_id.
* Merge branch '10.1' into 10.2Vicențiu Ciorbaru2020-03-051-0/+10
|\
| * Remove unneded extra context line from test file to make it version independentVicențiu Ciorbaru2020-02-281-2/+0
| |
| * MDEV-21374: When "--help --verbose" prints out configuration file paths, the ↵Anel Husakovic2020-02-221-0/+12
| | | | | | | | | | | | | | | | | | --defaults-file option is not considered * `--defaults-file` option is showed only in `--help --verbose` if applied * `--default-extra-file` is showing correctly now in `--help --verbose`, previously it was treated as a directory with appended `my.cnf`
* | MDEV-17941 ALTER USER IF EXISTS does not work, although documentation says ↵Alexey Botchkov2020-02-111-1/+1
| | | | | | | | | | | | | | it should. Mistake in syntax definition fixed - should be ALTER USER IF EXISTS, not ALTER IF EXISTS USER.
* | Windows test fixOleksandr Byelkin2020-02-071-13/+14
| |
* | MDEV-18027: Running out of file descriptors and eventual crashOleksandr Byelkin2020-02-051-1/+1
| | | | | | | | For automatic number of opened files limit take into account number of table instances for table cache
* | MDEV-21586 Server does not start if lc_messages setting was not english.Vladislav Vaintroub2020-01-301-1/+1
| | | | | | | | | | | | | | Fixed a bug introduced in MDEV-11345, server did not start if non-english error messages were set in startup parameters. Added lc_messages=de_DE option into an existing test case.
* | MENT-464 ASAN MTR quick test - some failures to be investigated.Alexey Botchkov2020-01-241-9/+9
| | | | | | | | | | PCRE reports small frame size working with ASAN, so the test has to be ready for the minimlas possible size.
* | new C/C and --ssl-verify-server-cert testsSergei Golubchik2020-01-232-0/+3
| | | | | | | | | | tests for --ssl-verify-server-cert with system CA and with incorrect hostname
* | MDEV-21249 MariaDB 10.3.10 When referring to bigint to generate timestamp ↵Sergei Golubchik2020-01-211-0/+28
| | | | | | | | | | | | data in the virtual generated column, the value of the generated column does not change when the time zone changes FROM_UNIXTIME() depends on @@time_zone, so it's VCOL_SESSION_FUNC
* | Merge branch '10.1' into 10.2Oleksandr Byelkin2020-01-203-11/+39
|\ \ | |/
| * Merge branch '5.5' into 10.1Oleksandr Byelkin2020-01-193-11/+33
| |\
| | * Bug#29630767 - USE OF UNINITIALIZED VALUE IN LIBMYSQL (CLIENT.CC FUNCTION ↵mariadb-5.5.67Sergei Golubchik2020-01-181-0/+8
| | | | | | | | | | | | RUN_PLUGIN_AUTH)
| | * Bug#30194841 INSERT ON DUPLICATE KEY UPDATE UPDATES THE WRONG ROWMaheedhar PV2020-01-181-0/+25
| | | | | | | | | | | | test case only
| | * MDEV-21210: main.uniques_crash-7912 tries to allocate 1TB of memoryVicențiu Ciorbaru2020-01-161-11/+0
| | | | | | | | | | | | | | | | | | | | | Remove the offending test case. This sort of error is hard to test in all possible corner cases and thus makes the test less valuable. The overflow error will be covered by warnings generated by the compiler, which is much more reliable in the general case.
* | | MDEV-21360 global debug_dbug pre-test value restoration issuesAlice Sherepa2020-01-1516-130/+130
| | |
* | | MDEV-21360 debug_dbug pre-test value restoration issuesAlice Sherepa2020-01-1516-20/+32
| | |
* | | Merge 10.1 into 10.2Marko Mäkelä2020-01-071-3/+3
|\ \ \ | |/ /
| * | Making group_by test stableVarun Gupta2020-01-031-3/+3
| | |
* | | Merge branch '10.1' into 10.2Oleksandr Byelkin2020-01-033-2/+31
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.1Oleksandr Byelkin2020-01-031-2/+2
| |\ \ | | |/
| | * MDEV-21416: main.events_bugs fails due to 2020-01-01 dateOleksandr Byelkin2020-01-031-2/+2
| | | | | | | | | | | | Moved to the next problematic year (2038).
| * | MDEV-20922: Adding an order by changes the query resultsVarun Gupta2020-01-021-0/+16
| | | | | | | | | | | | | | | | | | For Item_direct_view_ref , get value from val_* methods instead of result* family The val_* methods gets value from the item on which it is referred.
| * | MDEV-19680:: Assertion `!table || (!table->read_set || ↵Varun Gupta2019-12-261-0/+13
| | | | | | | | | | | | | | | | | | | | | bitmap_is_set(table->read_set, field_index) || (!(ptr >= table->record[0] && ptr < table->record[0] + table->s->reclength)))' or alike failed upon SELECT with mix of functions from simple view Set read_set bitmap for view from the JOIN::all_fields list instead of JOIN::fields_list as split_sum_func would have added items to the all_fields list.
* | | MDEV-21318: Wrong results with window functions and implicit groupingVarun Gupta2019-12-261-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue here is for degenerate joins we should execute the window function but it is not getting executed in all the cases. To get the window function values window function needs to be executed always. This currently does not happen in few cases where the join would return 0 or 1 row like 1) IMPOSSIBLE WHERE 2) MIN/MAX optimization 3) EMPTY CONST TABLE The fix is to make sure that window functions get executed and the temporary table is setup for the execution of window functions
* | | MDEV-21388 Wrong result of DAYNAME()=xxx in combination with ↵Alexander Barkov2019-12-242-1/+46
| | | | | | | | | | | | condition_pushdown_for_derived=on
* | | Merge 10.1 into 10.2Marko Mäkelä2019-12-234-10/+170
|\ \ \ | |/ /
| * | MDEV-21319 COUNT(*) returns 1, actual SELECT returns no result in 10.3.21, ↵Alexander Barkov2019-12-192-0/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but 1 result in 10.1.41 Item_ref::val_(datetime|time)_packed() erroneously called (*ref)->val_(datetime|time)_packed(). - Fixing to call (*ref)->val_(datetime|time)_packed_result(). - Backporting Item::val_(datetime|time)_packed_result() from 10.3. - Fixing Item_field::get_date_result() to handle null_value in the same way how Item_field::get_date() does.
| * | Merge remote-tracking branch 'origin/5.5' into 10.1Alexander Barkov2019-12-161-0/+13
| |\ \ | | |/
| | * MDEV-21065 UNIQUE constraint causes a query with string comparison to omit a ↵Alexander Barkov2019-12-161-0/+13
| | | | | | | | | | | | row in the result set
| * | MDEV-21209 : mysql_tzinfo_to_sql's Galera checks do not workJan Lindström2019-12-051-10/+10
| | | | | | | | | | | | | | | wsrep_on parameter can be visible even when wsrep_on is set OFF so we need to check variable_value from I_S also.
* | | MDEV-16579: Wrong result of query using DISTINCT COUNT(*) OVER (*)Varun Gupta2019-12-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | The query requires 2 temporary tables for execution, the window function is always attached to the last temporary table, but in this case the result field of the window function points to the first temporary table rather than the last one. Fixed this by not changing window function items with temporary table items of the first temporary table.
* | | MDEV-19380: ASAN heap-use-after-free in Protocol::net_store_dataVarun Gupta2019-12-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue here is window function makes the passed string object to point to an area in a temporary table's record buffer. Then, the temporary table is freed, together with its record buffer. Then, Item_cache_str attempts to read this value. The fix is to call value_buff.copy(). This will make the value_buff to store its string in a buffer that it owns, which will not disappear unexpectedly.
* | | MDEV-18460: Server crashed in strmake / tdc_create_key / ↵Oleksandr Byelkin2019-12-101-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | THD::create_tmp_table_def_key When there is a WITH clause we postpone check for tables without database for later stages when tables in WITH will be defined. But we should not try to open such tables as temporary tables because temporary tables always belong to a some database.
* | | MDEV-18463 Don't allow multiple table CONSTRAINTs with the same name.Alexey Botchkov2019-12-091-0/+26
| | | | | | | | | | | | Add necessary checks.
* | | Merge branch '10.1' into 10.2Oleksandr Byelkin2019-12-032-1/+31
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.1Oleksandr Byelkin2019-12-031-1/+1
| |\ \ | | |/
| | * Using `variables` instead of `values` in mysqld --help documentation would ↵Anel Husakovic2019-12-021-1/+1
| | | | | | | | | | | | be more accurate
| * | MDEV-21044: Wrong result when using a smaller size for sort bufferVarun Gupta2019-11-181-0/+30
| | | | | | | | | | | | | | | | | | | | | Make sure that the sort buffers can store atleast one sort key. This is needed to make sure that all merge buffers are read else with no sort keys some merge buffers are skipped because the code makes a conclusion there is no data to be read.
* | | update create_w_max_indexes_128.resultSergei Golubchik2019-11-151-128/+128
| | | | | | | | | | | | using create_w_max_indexes_64.result as a template
* | | manual merge 10.1->10.2Andrei Elkin2019-11-112-0/+112
|\ \ \ | |/ /
| * | MDEV-20519: Query plan regression with optimizer_use_condition_selectivity > 1Varun Gupta2019-11-072-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue here is the wrong estimate of the cardinality of a partial join, the cardinality is too high because the function table_cond_selectivity() returns an absurd number 100 while selectivity cannot be greater than 1. When accessing table t by outer reference t1.a via index we do not perform any range analysis for t. Yet we see TABLE::quick_key_parts[key] and TABLE->quick_rows[key] contain a non-zero value though these should have been remained untouched and equal to 0. Thus real cause of the problem is that TABLE::init does not clean the arrays TABLE::quick_key_parts[] and TABLE::>quick_rows[]. It should have done it because the TABLE structure created for any instance of a table can be reused for many queries.
* | | Merge 10.1 to 10.2Marko Mäkelä2019-11-062-0/+114
|\ \ \ | |/ /
| * | MDEV-20424: New default value for optimizer_use_condition-selectivity leads ↵Varun Gupta2019-11-012-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | to bad plan In the function prev_record_reads where one finds the different row combinations for a subset of partial join, it did not take into account the selectivity of tables involved in the subset of partial join.
* | | MDEV-20549 SQL SECURITY DEFINER does not work for INFORMATION_SCHEMA tablesSergei Golubchik2019-10-281-0/+79
| | | | | | | | | | | | switch to definer privileges when populating I_S tables
* | | Merge 10.1 into 10.2Marko Mäkelä2019-10-255-1/+109
|\ \ \ | |/ /
| * | Merge branch 'github/5.5' into 10.1Sergei Golubchik2019-10-235-0/+101
| |\ \ | | |/