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

« back to all changes in this revision

Viewing changes to mysql-test/t/alter_table.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:
751
751
SELECT * FROM t1;
752
752
DROP TABLE t1;
753
753
 
 
754
 
 
755
#
 
756
# Bug#31291 ALTER TABLE CONVERT TO CHARACTER SET does not change some data types
 
757
#
 
758
create table t1 (a tinytext character set latin1);
 
759
alter table t1 convert to character set utf8;
 
760
show create table t1;
 
761
drop table t1;
 
762
create table t1 (a mediumtext character set latin1);
 
763
alter table t1 convert to character set utf8;
 
764
show create table t1;
 
765
drop table t1;
 
766
 
754
767
--echo End of 5.0 tests
755
768
 
756
769
#
947
960
--disable_info
948
961
DROP TABLE t1;
949
962
 
 
963
#
 
964
# Bug#39372 "Smart" ALTER TABLE not so smart after all.
 
965
#
 
966
create table t1(f1 int not null, f2 int not null, key  (f1), key (f2));
 
967
let $count= 50;
 
968
--disable_query_log
 
969
while ($count)
 
970
{
 
971
  EVAL insert into t1 values (1,1),(1,1),(1,1),(1,1),(1,1);
 
972
  EVAL insert into t1 values (2,2),(2,2),(2,2),(2,2),(2,2);
 
973
  dec $count ;
 
974
}
 
975
--enable_query_log
 
976
 
 
977
select index_length into @unpaked_keys_size from
 
978
information_schema.tables where table_name='t1';
 
979
alter table t1 pack_keys=1;
 
980
select index_length into @paked_keys_size from
 
981
information_schema.tables where table_name='t1';
 
982
select (@unpaked_keys_size > @paked_keys_size);
 
983
 
 
984
select max_data_length into @orig_max_data_length from
 
985
information_schema.tables where table_name='t1';
 
986
alter table t1 max_rows=100;
 
987
select max_data_length into @changed_max_data_length from
 
988
information_schema.tables where table_name='t1';
 
989
select (@orig_max_data_length > @changed_max_data_length);
 
990
 
 
991
drop table t1;
950
992
 
951
993
#
952
994
# Bug #23113: Different behavior on altering ENUM fields between 5.0 and 5.1
958
1000
SELECT * FROM t1;
959
1001
DROP TABLE t1;
960
1002
 
961
 
 
962
1003
--echo End of 5.1 tests