1source include/not_embedded.inc; 2# 3# MDEV-60 Support for Spatial Reference systems for the GIS data. 4# 5show create procedure mysql.AddGeometryColumn; 6show create procedure mysql.DropGeometryColumn; 7create table t1 (a int, b int); 8call mysql.AddGeometryColumn('', 'test', 't1', 'c', 10); 9show create table t1; 10call mysql.DropGeometryColumn('', 'test', 't1', 'c'); 11show create table t1; 12call mysql.DropGeometryColumn('', 'test', 't1', 'b'); 13show create table t1; 14drop table t1; 15 16create user foo@localhost; 17grant execute on mysql.* to foo@localhost; 18connect (foo, localhost, foo); 19--error ER_TABLEACCESS_DENIED_ERROR 20call mysql.AddGeometryColumn('', 'mysql', 'proc', 'c', 10); 21disconnect foo; 22connection default; 23drop user foo@localhost; 24 25