~mathiaz/ubuntu/lucid/mysql-dfsg-5.1/zap-bug-552053

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/r/storedproc.result

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-25 12:55:45 UTC
  • mfrom: (1.1.2 upstream) (0.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090625125545-m8ogs96zzsri74xe
Tags: 5.1.34-1ubuntu1
* Merge from debian experimental (and 5.0 from main), 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)
    + don't ask for root password when upgrading from a 5.0 install.
  - debian/control:
    + Make libmysqlclient16-dev a transitional package depending on
      libmysqlclient-dev.
    + Make libmysqlclient-dev conflict with libmysqlclient15-dev.
    + Don't build mysql-server, mysql-client, mysql-common and
      libmysqlclient15-dev binary packages since they're still provided
      by mysql-dfsg-5.0.
    + 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.
    + 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.
    + install mysql-test and sql-bench to /usr/share/mysql/ rather than
      /usr/.
  - 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.0.files: install apparmor profile.
    - debian/mysql-server-5.0.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.0.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.0.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.
  - Don't package sql-bench and mysql-test file.
* Dropped changes:
  - debian/patches/92_ssl_test_cert.dpatch: certificate expiration in
    test suite (LP: #323755). Included upstream.
* Dropped from 5.0:
  - apparmor profile:
    - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6. All version
      of apparmor-profile (>hardy) are higher than this version.
    - debian/mysql-server-5.0.preinst: create symlink for force-complain/
      on pre-feisty upgrades, upgrades where apparmor-profiles profile is
      unchanged (ie non-enforcing) and upgrades where the profile
      doesn't exist. Support for pre-hardy upgrades is no longer needed.
* debian/mysql-server-5.1.postinst: fix debian-sys-maint user creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
USE db_storedproc;
12
12
create table t1(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
13
13
engine = <engine_to_be_tested>;
14
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t1;
 
14
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t4.txt' into table t1;
15
15
create table t2(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
16
16
engine = <engine_to_be_tested>;
17
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t2;
 
17
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t4.txt' into table t2;
18
18
create table t3(f1 char(20),f2 char(20),f3 integer) engine = <engine_to_be_tested>;
19
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t3.txt' into table t3;
 
19
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t3.txt' into table t3;
20
20
create table t4(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
21
21
engine = <engine_to_be_tested>;
22
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t4;
 
22
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t4.txt' into table t4;
23
23
USE db_storedproc_1;
24
24
create table t6(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
25
25
engine = <engine_to_be_tested>;
26
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t6;
 
26
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t4.txt' into table t6;
27
27
USE db_storedproc;
28
28
create table t7 (f1 char(20), f2 char(25), f3 date, f4 int)
29
29
engine = <engine_to_be_tested>;
30
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t7.txt' into table t7;
 
30
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t7.txt' into table t7;
31
31
Warnings:
32
32
Warning 1265    Data truncated for column 'f3' at row 1
33
33
Warning 1265    Data truncated for column 'f3' at row 2
41
41
Warning 1265    Data truncated for column 'f3' at row 10
42
42
create table t8 (f1 char(20), f2 char(25), f3 date, f4 int)
43
43
engine = <engine_to_be_tested>;
44
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t7.txt' into table t8;
 
44
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t7.txt' into table t8;
45
45
Warnings:
46
46
Warning 1265    Data truncated for column 'f3' at row 1
47
47
Warning 1265    Data truncated for column 'f3' at row 2
54
54
Warning 1265    Data truncated for column 'f3' at row 9
55
55
Warning 1265    Data truncated for column 'f3' at row 10
56
56
create table t9(f1 int, f2 char(25), f3 int) engine = <engine_to_be_tested>;
57
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t9.txt' into table t9;
 
57
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t9.txt' into table t9;
58
58
create table t10(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
59
59
engine = <engine_to_be_tested>;
60
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t10;
 
60
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t4.txt' into table t10;
61
61
create table t11(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int)
62
62
engine = <engine_to_be_tested>;
63
 
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/t4.txt' into table t11;
 
63
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/t4.txt' into table t11;
64
64
 
65
65
Section 3.1.1 - Syntax checks for the CREATE PROCEDURE, CREATE
66
66
FUNCTION, ALTER PROCEDURE, ALTER FUNCTION, DROP PROCEDURE, DROP FUNCTION, SHOW
92
92
ERROR 42000: Identifier name 'sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde' is too long
93
93
CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( 'abc' );
94
94
ERROR 42000: Identifier name 'sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde' is too long
95
 
SHOW PROCEDURE STATUS;
 
95
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
96
96
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
97
97
DROP PROCEDURE IF EXISTS sp1;
98
98
CREATE PROCEDURE sp1( f1 BINARY )
106
106
3
107
107
Warnings:
108
108
Warning 1265    Data truncated for column 'f1' at row 1
109
 
SHOW PROCEDURE STATUS;
 
109
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
110
110
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
111
111
db_storedproc   sp1     PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
112
112
DROP PROCEDURE IF EXISTS sp1;
119
119
CALL sp1( 34 );
120
120
@v1
121
121
34
122
 
SHOW PROCEDURE STATUS;
 
122
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
123
123
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
124
124
db_storedproc   sp1     PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
125
125
DROP PROCEDURE IF EXISTS sp1;
132
132
CALL sp1( 34 );
133
133
@v1
134
134
34
135
 
SHOW PROCEDURE STATUS;
 
135
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
136
136
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
137
137
db_storedproc   sp1     PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
138
138
DROP PROCEDURE IF EXISTS sp1;
173
173
BEGIN
174
174
RETURN f1;
175
175
END//
176
 
SHOW PROCEDURE STATUS;
 
176
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
177
177
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
178
178
db_storedproc   sproc_1 PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
179
 
SHOW FUNCTION STATUS;
 
179
SHOW FUNCTION STATUS WHERE db = 'db_storedproc';
180
180
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
181
181
db_storedproc   func_1  FUNCTION        root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
182
182
UPDATE t1_aux SET f1 = NULL;
1416
1416
value1
1417
1417
Warnings:
1418
1418
Note    1291    Column '' has duplicated value 'value1' in ENUM
1419
 
SHOW PROCEDURE STATUS;
 
1419
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
1420
1420
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
1421
1421
db_storedproc   sp1     PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
1422
1422
DROP PROCEDURE IF EXISTS sp1;
1433
1433
Warnings:
1434
1434
Note    1291    Column '' has duplicated value 'value1' in SET
1435
1435
Warning 1265    Data truncated for column 'f1' at row 1
1436
 
SHOW PROCEDURE STATUS;
 
1436
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
1437
1437
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
1438
1438
db_storedproc   sp1     PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
1439
1439
DROP PROCEDURE IF EXISTS sp1;
1449
1449
value1
1450
1450
Warnings:
1451
1451
Note    1291    Column '' has duplicated value 'value1' in ENUM
1452
 
SHOW PROCEDURE STATUS;
 
1452
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
1453
1453
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
1454
1454
db_storedproc   sp1     PROCEDURE       root@localhost  <modified>      <created>       INVOKER this is simple  latin1  latin1_swedish_ci       latin1_swedish_ci
1455
1455
DROP PROCEDURE IF EXISTS sp1;