summaryrefslogtreecommitdiff
path: root/storage/connect
diff options
context:
space:
mode:
authorHugo Wen <wenhug@amazon.com>2021-10-15 23:20:48 +0000
committerDaniel Black <daniel@mariadb.org>2021-11-26 13:12:51 +1100
commite9572e53e63e8e0b84006d99860c38578dede21f (patch)
tree51b942e2599d12bfadfb0f710fab6b552fa81c60 /storage/connect
parentb53ee760ff17e3d9ed95b75e5ea2de124ae69384 (diff)
downloadmariadb-git-e9572e53e63e8e0b84006d99860c38578dede21f.tar.gz
MDEV-27124: Update definer of Add/DropGeometryColumn procedures from 'root' to 'mariadb.sys'
From 10.4.13, the `mariadb.sys` user was created to replace `root` definers. - In commit 0253ea7f2208354b187ffcfa2f3128878597cc11, definer of Add/DropGeometryColumn procedures was changed to `mariadb.sys`, in `scripts/maria_add_gis_sp.sql.in`. However, maria_add_gis_sp.sql only applies to new databases created by installation script. Databases upgraded from old versions will miss this change. - In addition, according to commit 0d6d801e5886208b2632247d88da106a543e1032(MDEV-23102), in some scenarios when root user is replaced it will skip creating `mariadb.sys` user. This commit is to update the definer from `root` to `mariadb.sys` during upgrade. It only makes the change if the original definers are root. Doesn't choose to execute `maria_add_gis_sp.sql` in upgrade script to recreate the procedures is because of considering the scenarios of MDEV-23102 that `root` user is replaced and `mariadb.sys` is not created. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
Diffstat (limited to 'storage/connect')
0 files changed, 0 insertions, 0 deletions