diff options
author | unknown <msvensson@neptunus.(none)> | 2006-07-24 18:05:00 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-07-24 18:05:00 +0200 |
commit | e9821627fe8f7f7792339de756a4f98956e788f0 (patch) | |
tree | f4a14ddae682a0477f5f3db598ec3c4d7a7ac802 /mysql-test/r/perror.result | |
parent | 86282560e78e4164da0ab97b41028863fce46143 (diff) | |
download | mariadb-git-e9821627fe8f7f7792339de756a4f98956e788f0.tar.gz |
Bug#20145 perror segfault when call it with error nr
- Add test case(execute perror)
- Check if strerror has returned NULL and set msg to "Unknown Error" in that case
- Thanks to Steven Xie for pointing out how to fix.
extra/perror.c:
strerror might return NULL on Solaris 2.8
mysql-test/mysql-test-run.pl:
Add possibility to execute perror from test case
mysql-test/r/have_perror.require:
New BitKeeper file ``mysql-test/r/have_perror.require''
mysql-test/r/perror.result:
New BitKeeper file ``mysql-test/r/perror.result''
mysql-test/t/perror.test:
New BitKeeper file ``mysql-test/t/perror.test''
Diffstat (limited to 'mysql-test/r/perror.result')
-rw-r--r-- | mysql-test/r/perror.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/perror.result b/mysql-test/r/perror.result new file mode 100644 index 00000000000..6539955bba6 --- /dev/null +++ b/mysql-test/r/perror.result @@ -0,0 +1,3 @@ +MySQL error code 150: Foreign key constraint is incorrectly formed +Is a named type file +Didn't find key on read or update |