Vicențiu Ciorbaru
2857ff3c98
MDEV-10815: Window Function Expressions Wrong Results
...
Fix window function expressions such as win_func() <operator> expr.
The problem was found in 2 places.
First, when we have complex expressions containing window functions, we
can only compute their final value _after_ we have computed the window
function's values. These values must be stored within the temporary
table that we are using, before sending them off.
This is done by performing an extra copy_funcs call before the final
end_send() call.
Second, such expressions need to have their inner arguments,
changed such that the references within those arguments point to fields within
the temporary table.
Ex: sum(t.a) over (order by t.b) + sum(t.a) over (order by t.b)
Before this fix, t.a pointed to the original table's a field. In order
to compute the sum function's value correctly, it needs to point to the
copy of this field inside the temp table.
This is done by calling split_sum_func for each argument in the
expression in turn.
The win.test results have also been updated as they contained wrong
values for such a use case.
2016-09-24 15:12:34 +02:00
Vicențiu Ciorbaru
1c72441364
Frame bounds using FOLLOWING or PRECEDING can have 0 as cardinal value
...
This makes them behave exactly like CURRENT ROW. Standard specifies
unsigned integer, which includes the value 0.
Expand the win_min_max test to include this kind of frame definitions.
2016-09-24 15:09:39 +02:00
Vicențiu Ciorbaru
954e46531d
Fix compilation failure of TokuDB on BSD-like systems
...
mincore is defined differently in BSD mincore(void *, size_t, char *) vs
linux variant of: mincore(void *, size_t, unsigned char *).
Account for this difference in TokuDB.
2016-09-24 15:09:39 +02:00
Sergei Petrunia
a95e384d54
MDEV-10174: Make the fix for MDEV-8989 enabled by default in 10.2
...
- Change the default @@optimizer_switch value
- Adjust the testcases
2016-09-24 15:27:56 +03:00
Igor Babaev
457f3b9941
Added the test case for bug mdev-9941 that was fixed some time ago.
2016-09-23 14:42:12 -07:00
Igor Babaev
4872ec6177
Fixed bug mdev-10874.
...
In some cases the method Window_funcs_sort::setup() did
not build the sequence of sorting keys correctly.
2016-09-23 14:23:17 -07:00
Sergei Golubchik
78f58792ac
more adequate rpm settings
...
new MariaDB-shared no longer provides or replaces mysql-libs or mariadb-libs
2016-09-23 22:34:03 +02:00
Sergei Golubchik
deafe7a7aa
RPM fixes for CentOS7 and Fedora
2016-09-23 16:04:16 +02:00
Alexander Barkov
0f8a1a314d
MDEV-10877 xxx_unicode_nopad_ci collations
2016-09-23 14:19:07 +04:00
Vladislav Vaintroub
6304c0bfc7
Windows : completion port based asynchronous IO.
2016-09-22 17:27:36 +00:00
Vladislav Vaintroub
c46304f751
Fix valgrind error.
...
Do not accessing trx->mysql_log_file_name
after transaction end.
2016-09-22 17:21:21 +00:00
Vladislav Vaintroub
630035beaf
Fix buildbot errors on Windows
...
Do not use CloseHandle() on thread id. It is not a kernel handle.
2016-09-22 17:13:05 +00:00
Vladislav Vaintroub
f7a7c0c2fe
MDEV-10297 Add priorization to threadpool
...
Also MDEV-10385 Threadpool refactoring
2016-09-22 17:01:28 +00:00
Sergei Golubchik
f32a511558
Merge branch '10.2' into bb-10.2-connector-c-integ-subm
2016-09-22 17:50:37 +02:00
Igor Babaev
272637887c
Merge branch 'bb-10.2-mdev9864' into 10.2
2016-09-22 07:59:13 -07:00
Sergei Golubchik
f7640e1194
use the latest C/C commit
2016-09-22 13:32:00 +02:00
Sergei Golubchik
d2cfae67dc
copy-paste error fixed
2016-09-22 13:07:38 +02:00
Sergei Golubchik
b309faff77
buildbot failures
...
* update net_field_length() to match the prototype
* various bug fixes in C/C
2016-09-22 12:17:15 +02:00
Sergei Golubchik
c82c375eea
compilation failure on power8
...
fix a bad merge
2016-09-22 12:04:13 +02:00
Igor Babaev
48b4e33596
Allowed to use WITH clauses before SELECT in CREATE ... SELECT
...
and INSERT ... SELECT.
Added test cases.
2016-09-22 01:45:05 -07:00
Jan Lindström
200430ee80
MDEV-10845: Server crashes in sync_array_cell_print with innodb-status-file
...
Problem was NULL-pointer reference. Fixed by removing unnecessary and not
really working recursive reserver thread lookup.
2016-09-22 07:39:42 +03:00
Sergei Golubchik
d876f4bd5e
disable session_track_schema for perfschema.socket_summary_by_instance_func
...
because it counts number of bytes sent and expects it to be independent
from the database name length
2016-09-21 13:20:24 +02:00
Sergei Golubchik
59d51f0c12
Merge branch '10.2' into bb-10.2-connector-c-integ-subm
2016-09-21 12:54:56 +02:00
Sergei Golubchik
4368efe870
valgrind failures
...
and a couple of collaterals:
* debugging assert in my_valgrind.h
* trivial cleanup in sql_union.cc
2016-09-21 10:03:16 +02:00
Sergei Golubchik
e4f70789d5
fix sporadic innodb.auto_increment_dup failures
...
fix a race condition in the test
2016-09-21 10:03:16 +02:00
Sergei Golubchik
398d33ce9d
fix main.index_intersect_innodb failure on trusty-amd64
2016-09-21 10:03:16 +02:00
Igor Babaev
10aa3936a7
Fixed bug mdev-10842.
...
In some cases the function compare_order_elements() erroneously
returned CMP_EQ for not equal elements.
2016-09-20 19:56:05 -07:00
Sergei Golubchik
fb8bc59f01
mysqld_safe: don't use "$DATADIR/my.cnf"
...
finally removed, after being deprecated since 2005
2016-09-19 20:13:49 +02:00
Sergei Golubchik
7fc36e69f7
set the default socket addr for C/C
2016-09-19 20:13:49 +02:00
Sergei Golubchik
992606f256
only put real *.so.* shared libraries in compat.rpm
...
do not put there *.so symlinks
2016-09-19 20:13:49 +02:00
Sergei Golubchik
a749246d7e
a couple of C/C bugs to fix failures in ps-protocol
...
fixes: federated.federatedx rpl.rpl_sp rpl.rpl_colSize
rpl.rpl_extra_col_slave_innodb rpl.rpl_extra_col_master_innodb
rpl.rpl_udf rpl.rpl_extra_col_slave_myisam rpl.rpl_extra_col_master_myisam
2016-09-19 20:13:48 +02:00
Igor Babaev
3da077a6ec
Merge branch '10.2' of github.com:MariaDB/server into 10.2
2016-09-19 09:54:16 -07:00
Igor Babaev
697a9d0163
Fixed a failure with --valgrind for cte_recursive.test.
2016-09-19 09:53:36 -07:00
Sergei Golubchik
f9bdc7c01a
Merge branch '10.2' into bb-10.2-jan
2016-09-19 09:47:08 +02:00
Sergei Golubchik
f566a4f83c
maria.encrypt-wrong-key - cleanup properly
2016-09-17 21:55:51 +02:00
Sergey Vojtovich
85358ddf88
MDEV-10296 - Multi-instance table cache
...
Updated mysqld--help,win.rdiff.
2016-09-17 11:01:27 +04:00
Sergey Vojtovich
cb575abf76
MDEV-10296 - Multi-instance table cache
...
Some compilers are unhappy about mixed struct/class declarations.
2016-09-16 21:46:33 +04:00
Sergei Golubchik
f7be8cf285
update test results
2016-09-16 17:51:48 +02:00
Sergey Vojtovich
0d88b97e1e
MDEV-10296 - Multi-instance table cache
...
Fixed type cast.
2016-09-16 19:07:59 +04:00
Sergey Vojtovich
a2b1c58c19
MDEV-10296 - Multi-instance table cache
...
Fixed sysvars_server_[not]embedded failure: changed type of
table_open_cache_instances from ulong to uint.
Added casts foratomic operations around tc_active_instances and
tc_contention_warning_reported: needed on some platforms.
2016-09-16 18:41:21 +04:00
Sergey Vojtovich
8613633f26
MDEV-10296 - Multi-instance table cache
...
Table cache instances autosizing.
2016-09-16 15:46:15 +04:00
Sergey Vojtovich
7e9ac7b8ac
MDEV-10296 - Multi-instance table cache
...
Improve scalability by implementing multi-instance table cache.
2016-09-16 15:46:15 +04:00
Sergei Golubchik
4572dca4bd
increase I_S.FILES.FILE_NANE column length
...
because InnoDB 5.7 tdecided to store a full path there
2016-09-16 09:54:31 +02:00
Sergei Golubchik
15b174a3cb
debug-only test, use have_debug.inc
2016-09-16 09:54:31 +02:00
Sergei Golubchik
882aea98c7
fix debian: no ha_innodb.so for you, sorry
2016-09-16 09:54:31 +02:00
Jan Lindström
f5ef5531b8
Fixed mutex deadlock found with innodb.innodb-defrag-concurrent
...
test. We should not take X-lock for index in the begining, setting
tablespace as named space is enough.
2016-09-16 09:54:30 +02:00
Sergei Golubchik
c8b3244703
fix some quoting in error messages
...
add_identifier change comes from 5.7, everything else is a follow-up
2016-09-16 09:54:30 +02:00
Monty
6c1c27ea11
Don't increment 'Empty_queries' for queries with errors.
2016-09-15 22:02:32 +03:00
Monty
7ca60dd842
Test case for fix assertion/hang in read_init_file()
2016-09-15 21:56:01 +03:00
Sergei Golubchik
b1384143e2
fix many rpl test failures
...
* wait_until_connected_again.inc should expect ER_CONNECTION_KILLED now
* also fix MySQL BUG#36228
2016-09-15 15:31:28 +02:00