Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ae676e85
Commit
ae676e85
authored
Mar 03, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
upmerge 51590
parents
6e90fa4c
1a6a5402
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
client/mysqltest.cc
client/mysqltest.cc
+4
-3
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+1
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+15
-2
No files found.
client/mysqltest.cc
View file @
ae676e85
...
...
@@ -7536,9 +7536,6 @@ void get_command_type(struct st_command* command)
sizeof
(
saved_expected_errors
));
DBUG_PRINT
(
"info"
,
(
"There are %d expected errors"
,
command
->
expected_errors
.
count
));
command
->
abort_on_error
=
(
command
->
expected_errors
.
count
==
0
&&
abort_on_error
);
DBUG_VOID_RETURN
;
}
...
...
@@ -7886,6 +7883,10 @@ int main(int argc, char **argv)
command
->
type
=
Q_COMMENT
;
}
/* (Re-)set abort_on_error for this command */
command
->
abort_on_error
=
(
command
->
expected_errors
.
count
==
0
&&
abort_on_error
);
/* delimiter needs to be executed so we can continue to parse */
my_bool
ok_to_do
=
cur_block
->
ok
||
command
->
type
==
Q_DELIMITER
;
/*
...
...
mysql-test/r/mysqltest.result
View file @
ae676e85
...
...
@@ -325,6 +325,7 @@ outer=2 ifval=0
outer=1 ifval=1
here is the sourced script
ERROR 42S02: Table 'test.nowhere' doesn't exist
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else' at line 1
In loop
here is the sourced script
...
...
mysql-test/t/mysqltest.test
View file @
ae676e85
...
...
@@ -863,7 +863,7 @@ while ($outer)
}
# Test source in an if in a while which is false on 1st iteration
# Also test --error in same context
# Also test --error
and --disable_abort_on_error
in same context
let
$outer
=
2
;
# Number of outer loops
let
$ifval
=
0
;
# false 1st time
while
(
$outer
)
...
...
@@ -874,6 +874,10 @@ while ($outer)
--
source
$MYSQLTEST_VARDIR
/
tmp
/
sourced
.
inc
--
error
ER_NO_SUCH_TABLE
SELECT
*
from
nowhere
;
--
disable_abort_on_error
# Statement giving a different error, to make sure we don't mask it
SELECT
*
FROM
nowhere
else
;
--
enable_abort_on_error
}
dec
$outer
;
inc
$ifval
;
...
...
@@ -1724,7 +1728,16 @@ select 1;
--
reap
EOF
--
error
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
in
2
>&
1
# Must filter unpredictable extra warning from output
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
in
>
$MYSQL_TMP_DIR
/
mysqltest
.
out
2
>&
1
--
perl
my
$dir
=
$ENV
{
'MYSQL_TMP_DIR'
};
open
(
FILE
,
"
$dir
/mysqltest.out"
);
while
(
<
FILE
>
)
{
print
unless
/
Note
:
net_clear
/
;
# This shows up on rare occations
}
EOF
remove_file
$MYSQL_TMP_DIR
/
mysqltest
.
out
;
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
in
;
drop
table
t1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment