diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-01-02 10:01:09 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-01-02 10:01:09 -0500 |
commit | 455f77bdbb14d5f41809ef5bbd234ea9fd92f972 (patch) | |
tree | 3bca559fd4b3894595e72544a41a36f32b8c000b /mysql-test/suite | |
parent | 25aaa652c489839f5ef9e0ff6d067e8c1702970d (diff) | |
download | mariadb-git-455f77bdbb14d5f41809ef5bbd234ea9fd92f972.tar.gz |
MDEV-7222: Cluster Node Crash at CREATE DEFINER statement
Check whether the definer host string is not null before
appending it to the specified buffer.
Diffstat (limited to 'mysql-test/suite')
-rw-r--r-- | mysql-test/suite/galera/r/view.result | 7 | ||||
-rw-r--r-- | mysql-test/suite/galera/t/view.test | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/suite/galera/r/view.result b/mysql-test/suite/galera/r/view.result new file mode 100644 index 00000000000..89e2355b4dc --- /dev/null +++ b/mysql-test/suite/galera/r/view.result @@ -0,0 +1,7 @@ +# +# MDEV-7222: Cluster Node Crash at CREATE DEFINER statement +# +USE test; +CREATE DEFINER=CURRENT_USER VIEW v1 AS SELECT 1; +DROP VIEW v1; +# End of tests diff --git a/mysql-test/suite/galera/t/view.test b/mysql-test/suite/galera/t/view.test new file mode 100644 index 00000000000..6768917589c --- /dev/null +++ b/mysql-test/suite/galera/t/view.test @@ -0,0 +1,11 @@ +--source include/galera_cluster.inc +--source include/have_innodb.inc + +--echo # +--echo # MDEV-7222: Cluster Node Crash at CREATE DEFINER statement +--echo # +USE test; +CREATE DEFINER=CURRENT_USER VIEW v1 AS SELECT 1; +DROP VIEW v1; + +--echo # End of tests |