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
456b2d6b
Commit
456b2d6b
authored
Mar 07, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error message for faulty usage of "inc" and "dec"
parent
f063ce8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
client/mysqltest.c
client/mysqltest.c
+3
-3
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+4
-4
No files found.
client/mysqltest.c
View file @
456b2d6b
...
...
@@ -1360,9 +1360,9 @@ int do_modify_var(struct st_query *query,
const
char
*
p
=
query
->
first_argument
;
VAR
*
v
;
if
(
!*
p
)
die
(
"Missing argument
s
to %.*s"
,
query
->
first_word_len
,
query
->
query
);
die
(
"Missing argument to %.*s"
,
query
->
first_word_len
,
query
->
query
);
if
(
*
p
!=
'$'
)
die
(
"
First
argument to %.*s must be a variable (start with $)"
,
die
(
"
The
argument to %.*s must be a variable (start with $)"
,
query
->
first_word_len
,
query
->
query
);
v
=
var_get
(
p
,
&
p
,
1
,
0
);
switch
(
operator
)
{
...
...
@@ -1373,7 +1373,7 @@ int do_modify_var(struct st_query *query,
v
->
int_val
++
;
break
;
default:
die
(
"Invalid operator to do_
operato
r"
);
die
(
"Invalid operator to do_
modify_va
r"
);
break
;
}
v
->
int_dirty
=
1
;
...
...
mysql-test/r/mysqltest.result
View file @
456b2d6b
...
...
@@ -305,8 +305,8 @@ mysqltest: At line 1: Invalid argument to real_sleep "abc"
101
hej
1
mysqltest: At line 1: Missing argument
s
to inc
mysqltest: At line 1:
First
argument to inc must be a variable (start with $)
mysqltest: At line 1: Missing argument to inc
mysqltest: At line 1:
The
argument to inc must be a variable (start with $)
mysqltest: At line 1: End of line junk detected: "1000"
4
4
...
...
@@ -315,8 +315,8 @@ mysqltest: At line 1: End of line junk detected: "1000"
99
hej
-1
mysqltest: At line 1: Missing argument
s
to dec
mysqltest: At line 1:
First
argument to dec must be a variable (start with $)
mysqltest: At line 1: Missing argument to dec
mysqltest: At line 1:
The
argument to dec must be a variable (start with $)
mysqltest: At line 1: End of line junk detected: "1000"
mysqltest: At line 1: Missing arguments to system, nothing to do!
mysqltest: At line 1: Missing arguments to system, nothing to do!
...
...
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