mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-7515 GIS: No AddGeometryColumn or DropGeometryColumn in the tree.
Installation scripts added to setup the required SP-s with the mysql_install_db.
This commit is contained in:
@@ -307,8 +307,9 @@ fill_help_tables="$pkgdatadir/fill_help_tables.sql"
|
||||
create_system_tables="$pkgdatadir/mysql_system_tables.sql"
|
||||
create_system_tables2="$pkgdatadir/mysql_performance_tables.sql"
|
||||
fill_system_tables="$pkgdatadir/mysql_system_tables_data.sql"
|
||||
maria_add_gis_sp="$pkgdatadir/maria_add_gis_sp_bootstrap.sql"
|
||||
|
||||
for f in "$fill_help_tables" "$create_system_tables" "$create_system_tables2" "$fill_system_tables"
|
||||
for f in "$fill_help_tables" "$create_system_tables" "$create_system_tables2" "$fill_system_tables" "$maria_add_gis_sp"
|
||||
do
|
||||
if test ! -f "$f"
|
||||
then
|
||||
@@ -469,6 +470,17 @@ else
|
||||
echo "The \"HELP\" command might not work properly."
|
||||
fi
|
||||
|
||||
s_echo "Creating OpenGIS required SP-s..."
|
||||
if { echo "use test;"; cat "$maria_add_gis_sp"; } | mysqld_install_cmd_line > /dev/null
|
||||
then
|
||||
s_echo "OK"
|
||||
else
|
||||
echo
|
||||
echo "WARNING: OPENGIS REQUIRED SP-S WERE NOT COMPLETELY INSTALLED!"
|
||||
echo "GIS extentions might not work properly."
|
||||
fi
|
||||
|
||||
|
||||
# Don't output verbose information if running inside bootstrap or using
|
||||
# --srcdir for testing. In such cases, there's no end user looking at
|
||||
# the screen.
|
||||
|
Reference in New Issue
Block a user