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
41d860ef
Commit
41d860ef
authored
Jun 01, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
5.1 merge
parents
f45784c8
34f2f8ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
client/mysqltest.cc
client/mysqltest.cc
+7
-4
mysql-test/r/mysqltest_256.result
mysql-test/r/mysqltest_256.result
+1
-0
mysql-test/t/mysqltest_256.test
mysql-test/t/mysqltest_256.test
+17
-0
No files found.
client/mysqltest.cc
View file @
41d860ef
...
@@ -8330,8 +8330,12 @@ int main(int argc, char **argv)
...
@@ -8330,8 +8330,12 @@ int main(int argc, char **argv)
command
->
abort_on_error
=
(
command
->
expected_errors
.
count
==
0
&&
command
->
abort_on_error
=
(
command
->
expected_errors
.
count
==
0
&&
abort_on_error
);
abort_on_error
);
/* delimiter needs to be executed so we can continue to parse */
/*
ok_to_do
=
cur_block
->
ok
||
command
->
type
==
Q_DELIMITER
;
some commmands need to be executed or at least parsed unconditionally,
because they change the grammar.
*/
ok_to_do
=
cur_block
->
ok
||
command
->
type
==
Q_DELIMITER
||
command
->
type
==
Q_PERL
;
/*
/*
Some commands need to be "done" the first time if they may get
Some commands need to be "done" the first time if they may get
re-iterated over in a true context. This can only happen if there's
re-iterated over in a true context. This can only happen if there's
...
@@ -8342,8 +8346,7 @@ int main(int argc, char **argv)
...
@@ -8342,8 +8346,7 @@ int main(int argc, char **argv)
if
(
command
->
type
==
Q_SOURCE
||
if
(
command
->
type
==
Q_SOURCE
||
command
->
type
==
Q_ERROR
||
command
->
type
==
Q_ERROR
||
command
->
type
==
Q_WRITE_FILE
||
command
->
type
==
Q_WRITE_FILE
||
command
->
type
==
Q_APPEND_FILE
||
command
->
type
==
Q_APPEND_FILE
)
command
->
type
==
Q_PERL
)
{
{
for
(
struct
st_block
*
stb
=
cur_block
-
1
;
stb
>=
block_stack
;
stb
--
)
for
(
struct
st_block
*
stb
=
cur_block
-
1
;
stb
>=
block_stack
;
stb
--
)
{
{
...
...
mysql-test/r/mysqltest_256.result
0 → 100644
View file @
41d860ef
# Done
mysql-test/t/mysqltest_256.test
0 → 100644
View file @
41d860ef
#
# MDEV-256 lp:995501 - mysqltest attempts to parse Perl code inside a block
# with false condition, gets confused and throws wrong errors
#
let
$run
=
0
;
if
(
$run
)
{
--
perl
foreach
(
1
)
{
print
"In perl
\n
"
;
}
EOF
SELECT
1
;
}
--
echo
# Done
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