142 changed files with 383 additions and 286 deletions
-
6Docs/mysql.info
-
4Docs/sp-imp-spec.txt
-
2INSTALL-SOURCE
-
2INSTALL-WIN-SOURCE
-
2client/mysql.cc
-
2client/mysql_upgrade.c
-
5client/mysqlcheck.c
-
6client/mysqltest.cc
-
4cmake/cpack_rpm.cmake
-
4debian/additions/innotop/innotop
-
2debian/additions/innotop/innotop.1
-
2debian/additions/mysqlreport
-
2debian/copyright
-
17debian/mariadb-server-10.1.mysql-server.logrotate
-
5debian/mariadb-server-10.1.postinst
-
4extra/yassl/src/yassl_error.cpp
-
2include/my_context.h
-
2include/mysql/service_progress_report.h
-
2libmysql/libmysql.c
-
2man/mysql-test-run.pl.1
-
2mysql-test/README
-
2mysql-test/extra/rpl_tests/rpl_binlog_max_cache_size.test
-
2mysql-test/include/mtr_warnings.sql
-
2mysql-test/lib/My/SafeProcess.pm
-
2mysql-test/lib/v1/mtr_report.pl
-
2mysql-test/mysql-test-run.pl
-
6mysql-test/r/contributors.result
-
2mysql-test/r/delayed.result
-
2mysql-test/r/events_bugs.result
-
2mysql-test/r/index_merge_myisam.result
-
2mysql-test/r/mysqldump.result
-
6mysql-test/suite/archive/partition_archive.result
-
7mysql-test/suite/archive/partition_archive.test
-
21mysql-test/suite/innodb/r/innodb-agregate.result
-
18mysql-test/suite/innodb/t/innodb-agregate.test
-
2mysql-test/suite/multi_source/gtid_ignore_duplicates.test
-
2mysql-test/suite/perfschema/t/socket_summary_by_instance_func.test
-
2mysql-test/suite/perfschema/t/socket_summary_by_instance_func_win.test
-
4mysql-test/suite/rpl/r/rpl_checksum.result
-
2mysql-test/suite/rpl/r/rpl_gtid_errorlog.result
-
4mysql-test/suite/rpl/r/rpl_incident.result
-
2mysql-test/suite/rpl/r/rpl_mixed_binlog_max_cache_size.result
-
2mysql-test/suite/rpl/r/rpl_row_binlog_max_cache_size.result
-
2mysql-test/suite/rpl/r/rpl_stm_binlog_max_cache_size.result
-
2mysql-test/suite/rpl/t/rpl_checksum.test
-
2mysql-test/suite/rpl/t/rpl_gtid_errorlog.test
-
2mysql-test/suite/rpl/t/rpl_incident.test
-
4mysql-test/suite/stress/include/ddl1.inc
-
14mysql-test/suite/sys_vars/t/innodb_buffer_pool_load_now_basic.test
-
40mysql-test/suite/sys_vars/t/secure_file_priv.test
-
4mysql-test/t/delayed.test
-
2mysql-test/t/events_bugs.test
-
2mysql-test/t/index_merge_myisam.test
-
2mysql-test/t/merge.test
-
2mysql-test/t/mysqldump.test
-
9mysys/lf_alloc-pin.c
-
2mysys/mf_iocache2.c
-
2mysys/mf_keycache.c
-
2mysys/my_default.c
-
2mysys/my_delete.c
-
4mysys/my_lock.c
-
6plugin/handler_socket/docs-en/perl-client.en.txt
-
6plugin/semisync/semisync_master.h
-
18scripts/mysqlaccess.sh
-
4sql-bench/bench-init.pl.sh
-
2sql-common/client_plugin.c
-
12sql-common/mysql_async.c
-
8sql/contributors.h
-
5sql/discover.cc
-
2sql/event_db_repository.cc
-
2sql/event_queue.cc
-
2sql/gcalc_slicescan.h
-
2sql/ha_partition.cc
-
2sql/handler.cc
-
4sql/handler.h
-
4sql/item.cc
-
4sql/item.h
-
4sql/item_func.cc
-
2sql/item_subselect.cc
-
14sql/log.cc
-
11sql/log_event.cc
-
4sql/log_event_old.cc
-
2sql/my_apc.cc
-
6sql/mysql_install_db.cc
-
6sql/rpl_parallel.cc
-
2sql/rpl_parallel.h
-
4sql/rpl_record.cc
-
2sql/share/errmsg-utf8.txt
-
4sql/signal_handler.cc
-
1sql/slave.cc
-
2sql/sp_head.h
-
2sql/sql_acl.cc
-
10sql/sql_base.cc
-
2sql/sql_join_cache.cc
-
2sql/sql_lex.h
-
2sql/sql_parse.cc
-
2sql/sql_prepare.cc
-
4sql/sql_repl.cc
-
8sql/sql_select.cc
-
2sql/sql_select.h
@ -1,11 +1,11 @@ |
|||
MariaDB is in most aspects identical to MySQL. |
|||
|
|||
Differences between MySQL and MariaDB can be found at: |
|||
http://kb.askmonty.org/en/mariadb-versus-mysql-features/ |
|||
http://kb.askmonty.org/en/mariadb-versus-mysql-compatibility/ |
|||
https://mariadb.com/kb/en/mariadb-vs-mysql-features/ |
|||
https://mariadb.com/kb/en/mariadb-vs-mysql-compatibility/ |
|||
|
|||
The MariaDB manual can be found at: |
|||
http://kb.askmonty.org/ |
|||
https://mariadb.com/kb/ |
|||
|
|||
The MySQL Reference Manual is available in various formats on |
|||
http://dev.mysql.com/doc. |
@ -1,3 +1,3 @@ |
|||
Instructions for building MariaDB can be found at: |
|||
https://kb.askmonty.org/en/compiling-mariadb-from-source/ |
|||
https://mariadb.com/kb/en/compiling-mariadb-from-source |
|||
|
@ -1,3 +1,3 @@ |
|||
Up-to-date instructions about building MariaDB on Windows can be found |
|||
at: http://kb.askmonty.org/en/building-mariadb-on-windows |
|||
at: https://mariadb.com/kb/en/Building_MariaDB_on_Windows |
|||
|
@ -0,0 +1,21 @@ |
|||
create table t2 (a smallint(6) not null, b int(10) not null, name varchar(20), primary key(a,b), key(name)) engine=InnoDB; |
|||
insert into t2 values (8355,3,"sanja"),(8355,4,"wlad"),(8366,5, "lawrin"),(8366,6,"markusjm"); |
|||
select count(distinct name) from t2 where a=8366 and b>=5 and b<=5; |
|||
count(distinct name) |
|||
1 |
|||
select count(distinct name) from t2 where a=8366 and b=5; |
|||
count(distinct name) |
|||
1 |
|||
select count(distinct name) from t2 where a=8366 and b between 5 and 5.5; |
|||
count(distinct name) |
|||
1 |
|||
select sum(distinct a) from t2 where a=8366 and b>=5 and b<=5; |
|||
sum(distinct a) |
|||
8366 |
|||
select sum(distinct a) from t2 where a=8366 and b=5; |
|||
sum(distinct a) |
|||
8366 |
|||
select sum(distinct a) from t2 where a=8366 and b between 5 and 5.5; |
|||
sum(distinct a) |
|||
8366 |
|||
drop table t2; |
@ -0,0 +1,18 @@ |
|||
--source include/have_innodb.inc |
|||
|
|||
# |
|||
# MDEV-9667: Server hangs after select count(distinct name) from t2 where a=8366 and b>=5 and b<=5; |
|||
# |
|||
|
|||
create table t2 (a smallint(6) not null, b int(10) not null, name varchar(20), primary key(a,b), key(name)) engine=InnoDB; |
|||
|
|||
insert into t2 values (8355,3,"sanja"),(8355,4,"wlad"),(8366,5, "lawrin"),(8366,6,"markusjm"); |
|||
|
|||
select count(distinct name) from t2 where a=8366 and b>=5 and b<=5; |
|||
select count(distinct name) from t2 where a=8366 and b=5; |
|||
select count(distinct name) from t2 where a=8366 and b between 5 and 5.5; |
|||
select sum(distinct a) from t2 where a=8366 and b>=5 and b<=5; |
|||
select sum(distinct a) from t2 where a=8366 and b=5; |
|||
select sum(distinct a) from t2 where a=8366 and b between 5 and 5.5; |
|||
|
|||
drop table t2; |
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue