SQL hotfix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-10-01 10:02:19 +02:00
parent cdd71d00ec
commit 6d8b13423f
1 changed files with 6 additions and 1 deletions

View File

@ -194,7 +194,12 @@ BEGIN
vTplHost, vTplHost,
JSON_MERGE_PATCH( JSON_MERGE_PATCH(
IFNULL(t.`Priv`, '{}'), IFNULL(t.`Priv`, '{}'),
IFNULL(u.`Priv`, '{}') IFNULL(u.`Priv`, '{}'),
JSON_OBJECT(
'mysql_old_password', JSON_VALUE(t.`Priv`, '$.mysql_old_password'),
'mysql_native_password', JSON_VALUE(t.`Priv`, '$.mysql_native_password'),
'authentication_string', JSON_VALUE(t.`Priv`, '$.authentication_string')
)
) )
FROM tRole r FROM tRole r
LEFT JOIN mysql.global_priv t LEFT JOIN mysql.global_priv t