~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid

« back to all changes in this revision

Viewing changes to mysql-test/t/func_group.test

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-02-10 16:42:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090210164205-ej41ocvm4z1s14nq
Tags: 5.1.31-1ubuntu1
* Merge from debian experimental, remaining changes: 
  - debian/mysql-server-5.1.config: ask for MySQL root password at priority
    high instead of medium so that the password prompt is seen on a default
    install. (LP: #319843)
  - debian/control: 
    + Don't build mysql-server, mysql-client, mysql-common and 
      libmysqlclient15-dev binary packages since they're still provided 
      by mysql-dfsg-5.0.
    + Rename libmysqlclient-dev package to libmysqlclient16-dev (LP: #316280).
      Make it conflict with libmysqlclient15-dev.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide 
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src 
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
  - debian/rules: added -fno-strict-aliasing to CFLAGS to get
    around mysql testsuite build failures.
* debian/patches/92_ssl_test_cert.dpatch: certificate expiration in 
  test suite (LP: #323755).
* Dropped changes:
  - all of the changes made to support both 5.0 and 5.1 installed at the
    same time have been dropped now that amarok doesn't depend on
    mysql-server-5.1 anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
973
973
DROP TABLE derived1;
974
974
DROP TABLE D;
975
975
 
 
976
#
 
977
# Bug #39656: Behaviour different for agg functions with & without where -
 
978
# ONLY_FULL_GROUP_BY
 
979
#
 
980
 
 
981
CREATE TABLE t1 (a INT, b INT);
 
982
INSERT INTO t1 VALUES (1,1), (1,2), (1,3);
 
983
 
 
984
SET SQL_MODE='ONLY_FULL_GROUP_BY';
 
985
 
 
986
SELECT COUNT(*) FROM t1;
 
987
SELECT COUNT(*) FROM t1 where a=1;
 
988
 
 
989
--error ER_MIX_OF_GROUP_FUNC_AND_FIELDS
 
990
SELECT COUNT(*),a FROM t1;
 
991
 
 
992
SELECT COUNT(*) FROM t1 a JOIN t1 b ON a.a= b.a;
 
993
 
 
994
--error ER_MIX_OF_GROUP_FUNC_AND_FIELDS
 
995
SELECT COUNT(*), (SELECT count(*) FROM t1 inr WHERE inr.a = outr.a) 
 
996
  FROM t1 outr;
 
997
 
 
998
SELECT COUNT(*) FROM t1 a JOIN t1 outr 
 
999
  ON a.a= (SELECT count(*) FROM t1 inr WHERE inr.a = outr.a);
 
1000
 
 
1001
SET SQL_MODE=default;
 
1002
DROP TABLE t1;
 
1003
 
 
1004
 
976
1005
###
977
1006
--echo End of 5.0 tests