diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-06-27 22:12:21 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-06-27 22:12:21 +0400 |
commit | e337fd13b229edc78c7acb4ef1355fc87261dac9 (patch) | |
tree | 73ce709ebce7caa79a274cd28d36df4065636fa7 /scripts | |
parent | 09d902d84befaf3b1d247c2fcb9706e3f83522f4 (diff) | |
download | mariadb-git-e337fd13b229edc78c7acb4ef1355fc87261dac9.tar.gz |
MDEV-10119 mysql_install_db creates GIS procedures with invalid definer.
Servers sets default DEFINER to empty if run with the
--scip-grant-tables option.
So specify the DEFINER explicitly
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/maria_add_gis_sp.sql.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/maria_add_gis_sp.sql.in b/scripts/maria_add_gis_sp.sql.in index 1e2e513cd0a..3a5dd49b95b 100644 --- a/scripts/maria_add_gis_sp.sql.in +++ b/scripts/maria_add_gis_sp.sql.in @@ -23,12 +23,12 @@ SET sql_mode=''; DROP PROCEDURE IF EXISTS AddGeometryColumn; DROP PROCEDURE IF EXISTS DropGeometryColumn; -CREATE PROCEDURE AddGeometryColumn(catalog varchar(64), t_schema varchar(64), +CREATE DEFINER=`root`@`localhost` PROCEDURE AddGeometryColumn(catalog varchar(64), t_schema varchar(64), t_name varchar(64), geometry_column varchar(64), t_srid int) begin set @qwe= concat('ALTER TABLE ', t_schema, '.', t_name, ' ADD ', geometry_column,' GEOMETRY REF_SYSTEM_ID=', t_srid); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end @ADD_GIS_SP_EOL@ -CREATE PROCEDURE DropGeometryColumn(catalog varchar(64), t_schema varchar(64), +CREATE DEFINER=`root`@`localhost` PROCEDURE DropGeometryColumn(catalog varchar(64), t_schema varchar(64), t_name varchar(64), geometry_column varchar(64)) begin set @qwe= concat('ALTER TABLE ', t_schema, '.', t_name, ' DROP ', geometry_column); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end @ADD_GIS_SP_EOL@ |