~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to storage/pbxt/mysql-test/main/t/pbxt_my_fail2.test

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This test demonstrates how the flag OPTION_STATUS_NO_TRANS_UPDATE is
2
 
# not correctly reset, and leads to an incorrect warning
3
 
 
4
 
delimiter |;
5
 
 
6
 
--disable_warnings
7
 
drop table if exists t4|
8
 
--enable_warnings
9
 
create table t4 (
10
 
  a mediumint(8) unsigned not null auto_increment,
11
 
  b smallint(5) unsigned not null,
12
 
  c char(32) not null,
13
 
  primary key  (a)
14
 
) engine=myisam default charset=latin1|
15
 
insert into t4 values (1, 2, 'oneword')|
16
 
insert into t4 values (2, 2, 'anotherword')|
17
 
 
18
 
--disable_warnings
19
 
drop table if exists t3|
20
 
--enable_warnings
21
 
 
22
 
create table t3 ( x int unique ) engine=pbxt|
23
 
 
24
 
create procedure bug7049_1()
25
 
begin
26
 
  insert into t3 values (42);
27
 
  insert into t3 values (42);
28
 
end|
29
 
 
30
 
create procedure bug7049_2()
31
 
begin
32
 
  declare exit handler for sqlexception
33
 
    select 'Caught it' as 'Result';
34
 
 
35
 
  call bug7049_1();
36
 
  select 'Missed it' as 'Result';
37
 
end|
38
 
 
39
 
create function bug7049_1()
40
 
  returns int
41
 
begin
42
 
  insert into t3 values (42);
43
 
  insert into t3 values (42);
44
 
  return 42;
45
 
end|
46
 
 
47
 
create function bug7049_2()
48
 
  returns int
49
 
begin
50
 
  declare x int default 0;
51
 
  declare continue handler for sqlexception
52
 
    set x = 1;
53
 
 
54
 
  set x = bug7049_1();
55
 
  return x;
56
 
end|
57
 
 
58
 
# This cause the following warning:
59
 
# Warning 1196: Some non-transactional changed tables couldn't be rolled back
60
 
# which is not correct
61
 
# PMC - This bug was fixed in 5.1.12 (confirmed 2006-9-15).
62
 
call bug7049_2()|
63
 
 
64
 
drop procedure bug7049_1|
65
 
drop function bug7049_1|
66
 
drop procedure bug7049_2|
67
 
drop function bug7049_2|
68
 
 
69
 
delimiter ;|
70
 
 
71
 
--disable_query_log
72
 
drop table t3, t4;
73
 
--enable_query_log