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

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/inc/partition_timestamp.inc

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-05-18 22:22:44 UTC
  • mfrom: (1.1.5 upstream) (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100518222244-xqu0aw6arb8x7uqs
Tags: 5.1.43-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/control:
    + Don't provide a libmysqlclient15-dev package as long as there
      are packages still build-depending on libmysqlclient15-dev and
      mysql-dfsg-5.0 is in the archive.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in a
      full MTA on all installs of mysql-server (LP: #259477)
    + Make mysql-server-5.1 depend on mysql-server-core-5.1. (LP: #509667)
  - debian/rules:
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    + debian/apparmor-profile: apparmor profile
    + debian/rules, debian/mysql-server-5.1.files: install apparmor profile.
    + debian/mysql-server-5.1.dirs: add etc/apparmor.d/fore-complain
    + debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on purge.
    + debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    + debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    + debian/mysql-server-5.1.postinst: reload apparmor profiles
  - debian/additions/my.cfn: remove language options. Error message files are
    located in a different direction in Mysql 5.0. Setting the language option
    to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1 use a
    default value that works. (LP: #316974)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
  - debian/libmysqlclient16.symbols.amd64: remove amd64 symbols as it has
    not been correctly generated in Debian.
  - Add Apport hook (LP: #354188):
    + debian/mysql-server-5.1.py: apport package hook
    + debian/mysql-server-5.1.files, debian/rules: install apport package hook
  - debian/addtions/my.cnf:
    + drop old_password option.
    + fix commentened logging options to use general_log and general_log_file.
  - Don't upgrade if there is an ndb management node configured (LP: #413792)
  - Set thread stack size to 192K rather than 128K. 128K is only useful on
    systems with < 64M RAM and causes stack overrides with some SQL commands.
    See http://dev.mysql.com/doc/refman/5.1/en/server-system-varriables.html
    for more details. (LP: #426919)
  - Convert to upstart:
    + Add mysql-server-5.1.mysql.upstart
    + Dropped debian/mysql-server-5.1.mysql.init,
      debian/additions/mysqld_safe_syslog.cnf
    + debian/additions/my.cnf:
      * Removed pid declaration
      * Set up error logging to /var/log/mysql since we're not piping anything
        around logger anymore.
    + Remove references to mysqld_safe in these files:
      * debian/rules, mysql-server-5.1.logcheck.ignore.paranoid
        mysql-server-5.1.logcheck.ignore.workstation,
        mysql-server-5.1.logcheck.ignore.server
    + debian/mysql-server-5.1.postinst:
      * Replace calls to /etc/init.d with regular upstart calls
      * Remove reference to mysqld_safe
    + Dropped debian/patches/38_scripts_mysqld_safe.sh_signals.dpatch
    + Load apparmor when loading upstart.
   - debian/mysql-server-5.1.mysql-server.logrotate: Check to see if mysql is running before
     running logrotate. (LP: #513135)
   - Make the testsuite installable. (LP: #530752)
   - debian/control: Use database for the package section (LP: #498939).
   - debian/mysql-server-5.1.templates: fix MySQL Cluster package name to
   - Move mysql_install_db and required .sql files from the server package to the 
     server-core package.
   - Dropped:
     + debian/patches/90_mysql_safer_strmov: Merged upstream.
     + debian/patches/52_CVE-2009-4030.dpatch: Merged usptream.
     + debian/patches/53_CVE-2009-4484.dpatch: Merged upstream.
     + debian/patches/54_CVE-2008-7247.dpatch: Merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
select * from t2;
34
34
drop table t2;
35
35
 
36
 
eval create table t3 (a timestamp not null, primary key(a)) engine=$engine 
37
 
partition by range (month(a)) subpartition by key (a)
38
 
subpartitions 3 (
39
 
partition quarter1 values less than (4),
40
 
partition quarter2 values less than (7),
41
 
partition quarter3 values less than (10), 
42
 
partition quarter4 values less than (13)
43
 
);
44
 
show create table t3;
45
 
let $count=12;
46
 
--echo $count inserts;
47
 
while ($count)
48
 
{
49
 
eval insert into t3 values (date_add('1970-01-01 00:00:00',interval $count-1 month));
50
 
dec $count;
51
 
}
52
 
select count(*) from t3;
53
 
select * from t3;
54
 
drop table t3;
55
 
 
56
 
eval create table t4 (a timestamp not null, primary key(a)) engine=$engine 
57
 
partition by list (month(a)) subpartition by key (a)
58
 
subpartitions 3 (
59
 
partition quarter1 values in (0,1,2,3),
60
 
partition quarter2 values in (4,5,6),
61
 
partition quarter3 values in (7,8,9), 
62
 
partition quarter4 values in (10,11,12)
63
 
);
64
 
show create table t4;
65
 
let $count=12;
66
 
--echo $count inserts;
67
 
while ($count)
68
 
{
69
 
eval insert into t4 values (date_add('1970-01-01 00:00:00',interval $count-1 month));
70
 
dec $count;
71
 
}
72
 
select count(*) from t4;
73
 
select * from t4;
74
 
drop table t4;
 
36
################################################################################
 
37
# The following 2 tests are no longer valid after bug #42849 has been fixed:
 
38
# it is not possible to use a timezone-dependent (such as month(timestamp_col)
 
39
# or just a timestamp_col in a numeric context) anymore.
 
40
################################################################################
 
41
 
 
42
# eval create table t3 (a timestamp not null, primary key(a)) engine=$engine 
 
43
# partition by range (month(a)) subpartition by key (a)
 
44
# subpartitions 3 (
 
45
# partition quarter1 values less than (4),
 
46
# partition quarter2 values less than (7),
 
47
# partition quarter3 values less than (10), 
 
48
# partition quarter4 values less than (13)
 
49
# );
 
50
# show create table t3;
 
51
# let $count=12;
 
52
# --echo $count inserts;
 
53
# while ($count)
 
54
# {
 
55
# eval insert into t3 values (date_add('1970-01-01 00:00:00',interval $count-1 month));
 
56
# dec $count;
 
57
# }
 
58
# select count(*) from t3;
 
59
# select * from t3;
 
60
# drop table t3;
 
61
 
 
62
# eval create table t4 (a timestamp not null, primary key(a)) engine=$engine 
 
63
# partition by list (month(a)) subpartition by key (a)
 
64
# subpartitions 3 (
 
65
# partition quarter1 values in (0,1,2,3),
 
66
# partition quarter2 values in (4,5,6),
 
67
# partition quarter3 values in (7,8,9), 
 
68
# partition quarter4 values in (10,11,12)
 
69
# );
 
70
# show create table t4;
 
71
# let $count=12;
 
72
# --echo $count inserts;
 
73
# while ($count)
 
74
# {
 
75
# eval insert into t4 values (date_add('1970-01-01 00:00:00',interval $count-1 month));
 
76
# dec $count;
 
77
# }
 
78
# select count(*) from t4;
 
79
# select * from t4;
 
80
# drop table t4;