~ubuntu-branches/ubuntu/raring/mysql-5.5/raring-proposed

« back to all changes in this revision

Viewing changes to mysql-test/r/group_min_max_innodb.result

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
drop view v1;
95
95
drop table t1;
96
96
End of 5.1 tests
 
97
#
 
98
# Bug#12540545 61101: ASSERTION FAILURE IN THREAD 1256741184 IN
 
99
# FILE /BUILDDIR/BUILD/BUILD/MYSQ
 
100
#
 
101
CREATE TABLE t1 (a CHAR(1), b CHAR(1), PRIMARY KEY (a,b)) ENGINE=InnoDB;
 
102
INSERT INTO t1 VALUES ('a', 'b'), ('c', 'd');
 
103
EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
 
104
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
105
1       SIMPLE  t1      index   NULL    PRIMARY 2       NULL    2       Using where; Using index
 
106
SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
 
107
COUNT(DISTINCT a)
 
108
1
 
109
DROP TABLE t1;
 
110
CREATE TABLE t1 (a CHAR(1) NOT NULL, b CHAR(1) NOT NULL, UNIQUE KEY (a,b))
 
111
ENGINE=InnoDB;
 
112
INSERT INTO t1 VALUES ('a', 'b'), ('c', 'd');
 
113
EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
 
114
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
115
1       SIMPLE  t1      index   NULL    a       2       NULL    2       Using where; Using index
 
116
SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
 
117
COUNT(DISTINCT a)
 
118
1
 
119
DROP TABLE t1;
 
120
End of 5.5 tests