~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to mysql-test/t/mysqltest.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1745
1745
--replace_result $long_rep LONG_STRING
1746
1746
eval select "$long_rep" as x;
1747
1747
 
 
1748
# Test replace within ``
 
1749
 
 
1750
--replace_result cat dog
 
1751
--let $animal= `select "cat" as pet`
 
1752
--echo $animal
 
1753
 
1748
1754
# ----------------------------------------------------------------------------
1749
1755
# Test sync_with_master
1750
1756
# ----------------------------------------------------------------------------
2065
2071
select * from t1;
2066
2072
drop table t1;
2067
2073
 
 
2074
# Test usage with ``
 
2075
 
 
2076
--replace_regex /x/y/
 
2077
--let $result= `select "x" as col`
 
2078
--echo $result
 
2079
 
 
2080
# Test usage with a variable as pattern list
 
2081
 
 
2082
--disable_query_log
 
2083
--let $patt= /a /b / /less/more/
 
2084
--replace_regex $patt
 
2085
select "a is a and less is more" as txt;
 
2086
--let $patt=
 
2087
--replace_regex $patt
 
2088
select "a is a and less is more" as txt;
 
2089
--enable_query_log
 
2090
 
 
2091
#-------------------------------------------------------------------------
 
2092
# BUG #11754855 : Passing variable to --error  
 
2093
#-------------------------------------------------------------------------
 
2094
create table t2 ( a char(10));
 
2095
let $errno1=0;
 
2096
let $errno2=ER_PARSE_ERROR;
 
2097
let $errno3=ER_NO_SUCH_TABLE;
 
2098
--error $errno2 
 
2099
garbage;
 
2100
 
 
2101
--error $errno2,$errno3
 
2102
garbage;
 
2103
 
 
2104
--error $errno2,ER_NO_SUCH_TABLE
 
2105
garbage;
 
2106
 
 
2107
--error ER_NO_SUCH_TABLE,$errno2
 
2108
insert into t1 values ("Abcd");
 
2109
 
 
2110
--error $errno1,ER_PARSE_ERROR
 
2111
garbage;
 
2112
 
 
2113
drop table t2;
 
2114
 
 
2115
 
2068
2116
# ----------------------------------------------------------------------------
2069
2117
# Tests of send
2070
2118
# ----------------------------------------------------------------------------