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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Mathias Gug
  • Date: 2009-08-05 11:40:21 UTC
  • mfrom: (1.1.3 upstream) (0.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20090805114021-59bj0bgfm2ufllbk
Tags: 5.1.37-1ubuntu1
[ Mathias Gug ]
* Merge from debian unstable and 5.0, remaining changes:
  - debian/control:
    + Properly upgrade libmysqlclient16-dev packages to
    libmysqlclient-dev:
      * Make libmysqlclient16-dev a transitional package depending on
        libmysqlclient-dev.
      * Make libmysqlclient-dev replace libmysqlclient16-dev.
    + Don't provide a libmysqlclient15-dev package as long as there are
      packages still build-depending on libmysqlclient15-dev and
      mysql-dsfg-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)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
  - 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/force-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.cnf: remove language option. Error message files are
    located in a different directory 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)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.1.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - 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/additions/my.cnf: 
  - drop old_password option.
  - fix commented logging options to use general_log and general_log_file.
* Dropped - accepted in Debian:
  - 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)
    + don't ask for root password when upgrading from a 5.0 install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Set concurrent_insert = 0 to prevent random errors
 
2
# will reset to original value at the end of the test
 
3
SET @old_concurrent_insert = @@global.concurrent_insert;
 
4
SET @@global.concurrent_insert = 0;
 
5
# Pre-test cleanup
 
6
DROP TABLE IF EXISTS t1;
 
7
# Begin tests
 
8
#
 
9
# Bug#2005 Long decimal comparison bug.
 
10
#
 
11
CREATE TABLE t1 (a DECIMAL(64, 20));
 
12
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
 
13
("0987654321098765432109876543210987654321");
 
14
# Begin testing mysqldump output + restore
 
15
# Create 'original table name - <table>_orig
 
16
SET @orig_table_name = CONCAT('test.t1', '_orig');
 
17
# Rename original table
 
18
ALTER TABLE test.t1 RENAME to test.t1_orig;
 
19
# Recreate table from mysqldump output
 
20
# Compare original and recreated tables
 
21
# Recreated table: test.t1
 
22
# Original table: test.t1_orig
 
23
Comparing tables test.t1 and test.t1_orig
 
24
# Cleanup
 
25
DROP TABLE test.t1, test.t1_orig;
 
26
#
 
27
# Bug#3361 mysqldump quotes DECIMAL values inconsistently
 
28
#
 
29
CREATE TABLE t1 (a DECIMAL(10,5), b FLOAT);
 
30
INSERT INTO t1 VALUES (1.2345, 2.3456);
 
31
INSERT INTO t1 VALUES ('1.2345', 2.3456);
 
32
INSERT INTO t1 VALUES ("1.2345", 2.3456);
 
33
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ANSI_QUOTES';
 
34
INSERT INTO t1 VALUES (1.2345, 2.3456);
 
35
INSERT INTO t1 VALUES ('1.2345', 2.3456);
 
36
INSERT INTO t1 VALUES ("1.2345", 2.3456);
 
37
ERROR 42S22: Unknown column '1.2345' in 'field list'
 
38
SET SQL_MODE=@OLD_SQL_MODE;
 
39
# Begin testing mysqldump output + restore
 
40
# Create 'original table name - <table>_orig
 
41
SET @orig_table_name = CONCAT('test.t1', '_orig');
 
42
# Rename original table
 
43
ALTER TABLE test.t1 RENAME to test.t1_orig;
 
44
# Recreate table from mysqldump output
 
45
# Compare original and recreated tables
 
46
# Recreated table: test.t1
 
47
# Original table: test.t1_orig
 
48
Comparing tables test.t1 and test.t1_orig
 
49
# Cleanup
 
50
DROP TABLE test.t1, test.t1_orig;
 
51
#
 
52
# Bug#1994 mysqldump does not correctly dump UCS2 data
 
53
# Bug#4261 mysqldump 10.7 (mysql 4.1.2) --skip-extended-insert drops NULL from inserts
 
54
#
 
55
CREATE TABLE t1 (a  VARCHAR(255)) DEFAULT CHARSET koi8r;
 
56
INSERT INTO t1  VALUES (_koi8r x'C1C2C3C4C5'), (NULL);
 
57
# Begin testing mysqldump output + restore
 
58
# Create 'original table name - <table>_orig
 
59
SET @orig_table_name = CONCAT('test.t1', '_orig');
 
60
# Rename original table
 
61
ALTER TABLE test.t1 RENAME to test.t1_orig;
 
62
# Recreate table from mysqldump output
 
63
# Compare original and recreated tables
 
64
# Recreated table: test.t1
 
65
# Original table: test.t1_orig
 
66
Comparing tables test.t1 and test.t1_orig
 
67
# Cleanup
 
68
DROP TABLE test.t1, test.t1_orig;
 
69
#
 
70
# WL#2319 Exclude Tables from dump
 
71
#
 
72
CREATE TABLE t1 (a INT);
 
73
CREATE TABLE t2 (a INT);
 
74
INSERT INTO t1 VALUES (1),(2),(3);
 
75
INSERT INTO t2 VALUES (4),(5),(6);
 
76
# Begin testing mysqldump output + restore
 
77
# Create 'original table name - <table>_orig
 
78
SET @orig_table_name = CONCAT('test.t2', '_orig');
 
79
# Rename original table
 
80
ALTER TABLE test.t2 RENAME to test.t2_orig;
 
81
# Recreate table from mysqldump output
 
82
# Compare original and recreated tables
 
83
# Recreated table: test.t2
 
84
# Original table: test.t2_orig
 
85
Comparing tables test.t2 and test.t2_orig
 
86
# Cleanup
 
87
DROP TABLE test.t2, test.t2_orig;
 
88
DROP TABLE t1;
 
89
#
 
90
# Bug#8830 mysqldump --skip-extended-insert causes --hex-blob to dump wrong values
 
91
#
 
92
CREATE TABLE t1 (`b` blob);
 
93
INSERT INTO `t1` VALUES (0x602010000280100005E71A);
 
94
# Begin testing mysqldump output + restore
 
95
# Create 'original table name - <table>_orig
 
96
SET @orig_table_name = CONCAT('test.t1', '_orig');
 
97
# Rename original table
 
98
ALTER TABLE test.t1 RENAME to test.t1_orig;
 
99
# Recreate table from mysqldump output
 
100
# Compare original and recreated tables
 
101
# Recreated table: test.t1
 
102
# Original table: test.t1_orig
 
103
Comparing tables test.t1 and test.t1_orig
 
104
# Cleanup
 
105
DROP TABLE test.t1, test.t1_orig;
 
106
# End tests
 
107
# Cleanup
 
108
# Reset concurrent_insert to its original value
 
109
SET @@global.concurrent_insert = @old_concurrent_insert;
 
110
# remove mysqldumpfile