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
5da7193a
Commit
5da7193a
authored
Nov 18, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
upmerge 58257
parents
32b7c750
32ea0708
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
client/mysqltest.cc
client/mysqltest.cc
+3
-1
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+2
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+9
-0
No files found.
client/mysqltest.cc
View file @
5da7193a
...
...
@@ -5628,7 +5628,9 @@ void do_block(enum block_cmd cmd, struct st_command* command)
if
(
*
expr_start
==
'!'
)
{
not_expr
=
TRUE
;
expr_start
++
;
/* Step past the '!' */
expr_start
++
;
/* Step past the '!', then any whitespace */
while
(
*
expr_start
&&
my_isspace
(
charset_info
,
*
expr_start
))
expr_start
++
;
}
/* Find ending ')' */
expr_end
=
strrchr
(
expr_start
,
')'
);
...
...
mysql-test/r/mysqltest.result
View file @
5da7193a
...
...
@@ -403,7 +403,9 @@ true-inner
true-inner again
true-outer
Counter is greater than 0, (counter=10)
Counter should still be 10, is 10
Counter is not 0, (counter=0)
Not space var works
Counter is true, (counter=alpha)
while with string, only once
5<7
...
...
mysql-test/t/mysqltest.test
View file @
5da7193a
...
...
@@ -1141,6 +1141,11 @@ if (!$counter)
{
echo
Counter
is
not
0
,
(
counter
=
10
);
}
if
(
!
$counter
)
{
let
$counter
=
5
;
}
echo
Counter
should
still
be
10
,
is
$counter
;
let
$counter
=
0
;
if
(
$counter
)
{
...
...
@@ -1150,6 +1155,10 @@ if (!$counter)
{
echo
Counter
is
not
0
,
(
counter
=
0
);
}
if
(
!
$counter
)
{
echo
Not
space
var
works
;
}
# ----------------------------------------------------------------------------
# Test if with some non-numerics
...
...
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