summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-03-07 07:50:04 +0100
committermsvensson@neptunus.(none) <>2006-03-07 07:50:04 +0100
commit456b2d6b14ec2dcbdd3b490558adfe9131b4b39e (patch)
tree01e4b648ed7e2b242b938ac67351735530f6f0a0
parentf063ce8e31d803654717c1e8431fe4f9fb4e5c43 (diff)
downloadmariadb-git-456b2d6b14ec2dcbdd3b490558adfe9131b4b39e.tar.gz
Improve error message for faulty usage of "inc" and "dec"
-rw-r--r--client/mysqltest.c6
-rw-r--r--mysql-test/r/mysqltest.result8
2 files changed, 7 insertions, 7 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 09072d430f9..05304c1dd6d 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1360,9 +1360,9 @@ int do_modify_var(struct st_query *query,
const char *p= query->first_argument;
VAR* v;
if (!*p)
- die("Missing arguments 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_operator");
+ die("Invalid operator to do_modify_var");
break;
}
v->int_dirty= 1;
diff --git a/mysql-test/r/mysqltest.result b/mysql-test/r/mysqltest.result
index d6b635ce6da..8055a33ec7d 100644
--- a/mysql-test/r/mysqltest.result
+++ b/mysql-test/r/mysqltest.result
@@ -305,8 +305,8 @@ mysqltest: At line 1: Invalid argument to real_sleep "abc"
101
hej
1
-mysqltest: At line 1: Missing arguments 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 arguments 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!