summaryrefslogtreecommitdiff
path: root/mysql-test/include/ipv6.inc
diff options
context:
space:
mode:
authorHorst.Hunger <horst.hunger@sun.com>2009-11-23 17:38:42 +0100
committerHorst.Hunger <horst.hunger@sun.com>2009-11-23 17:38:42 +0100
commit206c636ec8df77b50204e305a3ad44b6ed32b3bc (patch)
treeddea188bfb6fbcb369218aaff37e2beabaea38bd /mysql-test/include/ipv6.inc
parent23159440504311372b2c081c1b5f2cb2f7d98ef3 (diff)
downloadmariadb-git-206c636ec8df77b50204e305a3ad44b6ed32b3bc.tar.gz
Reviewed patch of QA results for WL#798.
Diffstat (limited to 'mysql-test/include/ipv6.inc')
-rw-r--r--mysql-test/include/ipv6.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/include/ipv6.inc b/mysql-test/include/ipv6.inc
new file mode 100644
index 00000000000..378733dd03a
--- /dev/null
+++ b/mysql-test/include/ipv6.inc
@@ -0,0 +1,22 @@
+eval CREATE USER testuser@'$IPv6' identified by '1234';
+eval GRANT ALL ON test.* TO testuser@'$IPv6';
+eval SHOW GRANTS FOR testuser@'$IPv6';
+# deliver NULL instead of a valid number, see bug#34037
+eval SET @nip= inet_aton('$IPv6');
+SELECT @nip;
+SELECT inet_ntoa(@nip);
+# delivers a wrong value, see bug#34037
+SELECT USER();
+SELECT current_user();
+--disable_result_log
+SHOW PROCESSLIST;
+--enable_result_log
+connect (con1, $IPv6, root, , test, $MASTER_MYPORT);
+connection default;
+disconnect con1;
+eval REVOKE ALL ON test.* FROM testuser@'$IPv6';
+eval RENAME USER testuser@'$IPv6' to testuser1@'$IPv6';
+eval SET PASSWORD FOR testuser1@'$IPv6' = PASSWORD ('9876');
+SELECT USER();
+eval DROP USER testuser1@'$IPv6';
+