Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1977 05/12/29 09:48:43 msvensson@neptunus.(none) +2 -0
Improved error message for failing with wrong error
mysql-test/r/mysqltest.result
1.22 05/12/29 09:48:36 msvensson@neptunus.(none) +4 -4
Update test results
client/mysqltest.c
1.190 05/12/29 09:48:36 msvensson@neptunus.(none) +5 -4
Display the error message along with error number when query fails with wrong expected error.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/wl2930/my50-wl2930-integration
--- 1.21/mysql-test/r/mysqltest.result 2005-12-20 15:34:40 +01:00
+++ 1.22/mysql-test/r/mysqltest.result 2005-12-29 09:48:36 +01:00
@@ -16,7 +16,7 @@
mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22...
select friedrich from (select 1 as otto) as t1;
ERROR 42S22: Unknown column 'friedrich' in 'field list'
-mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed with wrong sqlstate 42S22 instead of 00000...
+mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed with wrong sqlstate 42S22: 'Unknown column 'friedrich' in 'field list'', instead of 00000...
select otto from (select 1 as otto) as t1;
otto
1
@@ -133,7 +133,7 @@
select 1146 as "after_!errno_masked_error" ;
after_!errno_masked_error
1146
-mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146 instead of 1000...
+mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146: 'Table 'test.t1' doesn't exist', instead of 1000...
garbage ;
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 'garbage' at line 1
select 1064 as "after_--enable_abort_on_error" ;
@@ -141,7 +141,7 @@
1064
select 3 from t1 ;
ERROR 42S02: Table 'test.t1' doesn't exist
-mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146 instead of 1064...
+mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146: 'Table 'test.t1' doesn't exist', instead of 1064...
hello
hello
;;;;;;;;
@@ -374,7 +374,7 @@
mysqltest: At line 1: Missing connection user
mysqltest: At line 1: Missing connection password
mysqltest: At line 1: Missing connection db
-mysqltest: At line 1: Could not open connection 'con2': Unknown database 'illegal_db'
+mysqltest: At line 1: Could not open connection 'con2': 1049 Unknown database 'illegal_db'
mysqltest: At line 1: Illegal argument for port: 'illegal_port'
mysqltest: At line 1: Illegal option to connect: SMTP
OK
--- 1.189/client/mysqltest.c 2005-12-20 17:06:12 +01:00
+++ 1.190/client/mysqltest.c 2005-12-29 09:48:36 +01:00
@@ -3549,11 +3549,12 @@
if (i)
{
if (q->expected_errno[0].type == ERR_ERRNO)
- die("query '%s' failed with wrong errno %d instead of %d...",
- q->query, err_errno, q->expected_errno[0].code.errnum);
+ die("query '%s' failed with wrong errno %d: '%s', instead of %d...",
+ q->query, err_errno, err_error, q->expected_errno[0].code.errnum);
else
- die("query '%s' failed with wrong sqlstate %s instead of %s...",
- q->query, err_sqlstate, q->expected_errno[0].code.sqlstate);
+ die("query '%s' failed with wrong sqlstate %s: '%s', instead of %s...",
+ q->query, err_sqlstate, err_error,
+ q->expected_errno[0].code.sqlstate);
}
DBUG_VOID_RETURN;
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.1977) | msvensson | 29 Dec |