diff options
author | unknown <jimw@mysql.com> | 2006-04-21 19:29:22 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2006-04-21 19:29:22 -0700 |
commit | 8057e30909d8433ca102bd31d3ba855cc3441043 (patch) | |
tree | a4abb12e68d3a6d2399b857dc1af6a72132e3eb4 /mysql-test/t/events.test | |
parent | a52bd573de515c2c0f4c40311f4201e183275713 (diff) | |
download | mariadb-git-8057e30909d8433ca102bd31d3ba855cc3441043.tar.gz |
Bug #18495: mysqltest does not use the correct error number
When looking up the error number for named errors in mysqltest .test
files, we inadvertantly would match ER_WRONG_VALUE against
ER_WRONG_VALUE_COUNT because we were using the length of the shorter
string in strncmp(). Now we double-check the length of matches to
make sure it was a complete match.
client/mysqltest.c:
Check the length of the error name to make sure it wasn't just a
partial match
mysql-test/t/events.test:
Replace error numbers with error names, with side-effect of testing
Bug #18495.
Diffstat (limited to 'mysql-test/t/events.test')
-rw-r--r-- | mysql-test/t/events.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/t/events.test b/mysql-test/t/events.test index f80297682b7..fbcd4924d56 100644 --- a/mysql-test/t/events.test +++ b/mysql-test/t/events.test @@ -320,9 +320,9 @@ drop event one_event; create event e_26 on schedule at '2017-01-01 00:00:00' disable do set @a = 5; select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event; drop event e_26; ---error 1504 +--error ER_WRONG_VALUE create event e_26 on schedule at NULL disabled do set @a = 5; ---error 1504 +--error ER_WRONG_VALUE create event e_26 on schedule at 'definitely not a datetime' disabled do set @a = 5; set names utf8; |