Marko Mäkelä
8b480df63e
Merge 10.3 into 10.4
2019-03-25 17:18:15 +02:00
Marko Mäkelä
c3a6c683e2
Merge 10.2 into 10.3
2019-03-25 11:03:19 +02:00
Alexander Barkov
f03f4da663
SEQUENCE tests for MDEV-18892 Regression in slow log and admin statements
...
Adding tests to cover how SEQUENCE related statements work in combination
with the slow log configuration commands.
2019-03-25 07:43:07 +04:00
Sachin
901e3ddf79
MDEV-18904 Assertion `m_part_spec.start_part >= m_part_spec.end_part' failed in ha_partition::index_read_idx_map
...
Remove the DBUG_ASSERT
2019-03-23 18:26:50 +05:30
Sachin
0c567648a4
Revert (MDEV-18888)2b06de8064660c5c, fix it in different way And add test case for MDEV-18953
2019-03-23 18:25:58 +05:30
Marko Mäkelä
ca80e14a88
Merge 10.3 into 10.4
2019-03-22 13:20:44 +02:00
Alexander Barkov
1c60f40868
Merge remote-tracking branch 'origin/10.2' into 10.3
2019-03-22 14:41:36 +04:00
Sachin
c23d4700e6
MDEV-18901 Wrong results after ADD UNIQUE INDEX(blob_column)
...
Add test case for MDEV-18901 as MDEV-18967 and MDEV-18922 solves this issue
2019-03-22 11:50:09 +05:30
Alexander Barkov
f4484dfdbf
MDEV-19008 Slow EXPLAIN SELECT ... WHERE col IN (const1,const2,(subquery))
2019-03-22 07:28:59 +04:00
Sachin
625aa232a6
MDEV-18967 Load data in system version with long unique does not work
...
Update system versioning fields before generated columns for left out
fill_record
2019-03-21 21:24:59 +05:30
Sergei Golubchik
23a7693a68
MDEV-18275 Live upgrade from 5.5 does not work: InnoDB stat tables are used before creation
...
let mysql_upgrade to work even when innodb_index_stats or
innodb_table_stats are missing.
(mysql_upgrade knows to ignore "unknown table" errors)
2019-03-20 19:18:21 +01:00
Marko Mäkelä
514b305dfb
Merge 10.3 into 10.4
...
The MDEV-17262 commit 26432e49d3
was skipped. In Galera 4, the implementation would seem to require
changes to the streaming replication.
In the tests archive.rnd_pos main.profiling, disable_ps_protocol
for SHOW STATUS and SHOW PROFILE commands until MDEV-18974
has been fixed.
2019-03-20 10:41:32 +02:00
Marko Mäkelä
117291db8b
Merge 10.2 into 10.3
2019-03-19 16:04:59 +02:00
sachinsetia1001@gmail.com
9c7299365f
Temporary disable ctype_utf8mb4_innodb and myisam test untill MDEV-18953 is fixed
2019-03-18 09:38:34 +05:30
Sergei Golubchik
4f410473ed
post-merge: --ps-protocol fixes
2019-03-17 13:07:01 +01:00
Sergei Golubchik
b64fde8f38
Merge branch '10.2' into 10.3
2019-03-17 13:06:41 +01:00
sachinsetia1001@gmail.com
3943fe5630
MDEV-18888 Server crashes in Item_field::register_field_in_read_map upon...
...
MODIFY COLUMN
Do Not create prefix field for long unique key
2019-03-17 13:51:46 +05:30
sachinsetia1001@gmail.com
8995f33c0b
MDEV-18889 Long unique on virtual fields crashes server
...
Use table->record[0] for ha_index_read_map so that vfield gets automatically
be updated.
2019-03-17 13:45:57 +05:30
Marko Mäkelä
3dd477db70
MDEV-18640: Correct a result
...
Follow-up fix for commit b234f81037
2019-03-15 18:05:47 +02:00
sachinsetia1001@gmail.com
2e34a031f8
MDEV-18809 Server crash in fields_in_hash_keyinfo or Assertion `key_info->key_part->field->flags & (1<< 30)' failed in setup_keyinfo_hash
...
Move calling setup_keyinfo_hash until all continue is exhausted.
And also call re_setup_keyinfo_hash for goto err.
2019-03-15 16:05:01 +05:30
sachinsetia1001@gmail.com
050280ce8b
MDEV-18922 Alter on long unique varchar column makes result null
...
Don't add long key into share->keys_for_keyread
2019-03-15 12:14:33 +05:30
Igor Babaev
b234f81037
MDEV-18640 TABLE::prune_range_rowid_filters: Conditional jump or move
...
depends on uninitialized value
This problem most probably was resolved by the patch for MDEV-18816.
This commit adds only the test case from the bug entry.
2019-03-14 19:33:13 -07:00
Alexander Barkov
7b33a6a1ea
MDEV-18876 Assertion `is_valid_time_slow()' failed in Time::valid_MYSQL_TIME_to_valid_value
2019-03-13 14:03:35 +04:00
sachin
62bfb2fe49
MDEV-18800 Server crash in instant_alter_column_possible or Assertion...
...
`!pk->has_virtual()' failed in instant_alter_column_possible upon adding key
Hash key can't be primary key.
2019-03-13 15:15:13 +05:30
sachin
ecf323620b
Add test cases for MDEV-18792 MDEV-18793 MDEV-18795 MDEV-18798 MDEV-18801
...
As MDEV-18799 fixes these mdevs so adding test cases for these mdevs.
2019-03-13 15:10:41 +05:30
sachin
560598c9b2
MDEV-18799 Long unique does not work after failed alter table
...
Restore table->key_info after calling setup_keyinfo_hash in
mysql_prepare_alter_table.
2019-03-13 15:09:16 +05:30
Varun Gupta
c3cfcd5b5e
MDEV-18810: Optimizer trace typo: cumulateed_index_scan_cost
...
Fixed the typo and updated the test results
2019-03-13 14:31:13 +05:30
sachin
f9f625fb43
MDEV-18790 Server crash in fields_in_hash_keyinfo after unsuccessful...
...
attempt to drop BLOB with long index
Restore long table->key_info, So that in the case of unsuccessful table
alter table->key_info should have a correct value. In the case of successful
table alter old table is flushed so that is why we don't see this error in
the case of successful alter.
2019-03-13 13:59:31 +05:30
Marko Mäkelä
e450527938
Merge 10.3 into 10.4
2019-03-12 16:14:31 +02:00
Marko Mäkelä
b32bc70e34
Merge 10.2 into 10.3
2019-03-12 14:26:34 +02:00
Oleksandr Byelkin
6d68a3464e
MDEV-18701: Wrong result from query that uses INTERSECT after UNION ALL
...
Recalculate distinct pointer if we cut chain of SELECTs
2019-03-11 17:41:00 +01:00
Marko Mäkelä
c67b306e4f
Merge 10.3 into 10.4
2019-03-08 11:19:48 +02:00
Marko Mäkelä
94eb56fb29
Give ASAN some more stack
...
When compiling CMAKE_BUILD_TYPE=Debug WITH_ASAN using clang-7 -O2
the following tests could fail due to insufficient stack size:
main.signal_demo3 sys_vars.max_sp_recursion_depth_func
2019-03-08 10:40:30 +02:00
Marko Mäkelä
2d0dd62cf7
Merge 10.2 into 10.3
2019-03-08 00:26:55 +02:00
Alexander Barkov
5f34513c2a
MDEV-18813 PROCEDURE and anonymous blocks silently ignore FETCH GROUP NEXT ROW
...
Part#2 (final): rewritting the code to pass the correct enum_sp_aggregate_type
to the sp_head constructor, so sp_head never changes its aggregation type
later on. The grammar has been simplified and defragmented.
This allowed to check aggregate specific instructions right after
a routine body has been scanned, by calling new LEX methods:
sp_body_finalize_{procedure|function|trigger|event}()
Moving some C++ code from *.yy to a few new helper methods in LEX.
2019-03-07 18:48:15 +04:00
Marko Mäkelä
aa4b2c1509
Merge 10.3 into 10.4
2019-03-07 08:02:33 +02:00
Alexander Barkov
f0cd707503
After-merge fix for MDEV-18333 Slow_queries count doesn't increase when slow_query_log is turned off
2019-03-06 23:44:58 +04:00
Igor Babaev
7b9981fbdf
MDEV-18816 Assertion `sel->quick' failed in JOIN::make_range_rowid_filters
...
Do not build range filters with detected impossible WHERE.
Anyway conditions cannot be used anymore to extract ranges for filters.
2019-03-06 09:12:21 -08:00
Marko Mäkelä
2a791c53ad
Merge 10.3 into 10.4
2019-03-06 09:00:52 +02:00
Marko Mäkelä
446b3ebdfc
Merge 10.2 into 10.3
...
FIXME: Properly resolve conflicts between MDEV-18883
and MDEV-7742/MDEV-8305, and record the correct result for
main.log_slow
2019-03-05 12:56:05 +02:00
Oleksandr Byelkin
b5c72a843a
MDEV-18358: Server crash when using SET STATEMENT max_statement_time
...
Do not init lex before choosing main select.
2019-03-05 11:03:51 +01:00
Igor Babaev
8f4de38f65
MDEV-18467 Server crashes in fix_semijoin_strategies_for_picked_join_order
...
If a splittable materialized derived table / view T is used in a inner nest
of an outer join with impossible ON condition then T is marked as a
constant table. Yet the execution plan to build T is still searched for
in spite of the fact that is not needed. So it should be set.
2019-03-04 23:11:18 -08:00
Marko Mäkelä
a2fc36989e
Merge 10.2 into 10.3
2019-03-04 17:01:00 +02:00
Alexander Barkov
47b7ca629f
MDEV-18796 Synchronize PS grammar between sql_yacc.yy and sql_yacc_ora.yy
2019-03-03 07:20:15 +04:00
Igor Babaev
5a0874449a
MDEV-18755 Assertion `inited==INDEX' failed in handler::ha_index_read_map
...
When the chosen execution plan accesses a join table employing a range
rowid filter a quick select to scan this range has to be built. This
quick select is built by a call of SQL_SELECT::test_quick_select().
At this call the function should allow to evaluate only single index
range scans. In order to be able to do this a new parameter was added
to this function.
2019-02-28 14:45:01 -08:00
Sergei Golubchik
b10340998f
MDEV-18748 REPLACE doesn't work with unique blobs on MyISAM table
...
on long unique conflict, set table->file->dup_ref for
engines that support it
2019-02-27 23:27:43 -05:00
Sergei Golubchik
9fd3e810e8
MDEV-18747 InnoDB: Failing assertion: table->get_ref_count() == 0 upon dropping temporary table with unique blob
...
delete update handler clone also for temporary tables
2019-02-27 23:27:43 -05:00
Sergei Golubchik
304f0084ef
MDEV-18720 Assertion `inited==NONE' failed in ha_index_init upon update on versioned table with key on blob
...
* update system versioning fields before generaled columns
* don't presume that ha_write_row() means INSERT. It could still be UPDATE
* use the correct handler in check_duplicate_long_entry_key()
2019-02-27 23:27:43 -05:00
Sergei Golubchik
f78c0f6f00
MDEV-18722 Assertion `templ->mysql_null_bit_mask' failed in row_sel_store_mysql_rec upon modifying indexed column into blob
...
don't assert that virtual columns are always nullable
2019-02-27 23:27:43 -05:00
Sergei Golubchik
3f53515425
MDEV-18713 Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed in test_if_reopen upon REPLACE into table with key on blob
...
close table->update_handler in close_thread_tables().
it's not enough to do it in sql_update.cc only, because
sql_insert.cc can also do updates (REPLACE) and even
sql_delete.cc can (DELETE ... FOR PORTION OF)
2019-02-27 23:27:43 -05:00