Fix #15229 - Notice - Undefined index: strPrivDescDelete versioning rowsTbl
Fixes: #15229 Adds support for delete versioning rows privilege See: https://mariadb.com/kb/en/library/grant/#table-privileges The privilege is named 'Delete versioning rows' in SHOW GRANTS and 'Delete_history_priv' in mysql.user Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
977c439bc3
commit
91c758aae4
@ -429,6 +429,16 @@ class Privileges
|
||||
'SHOW VIEW',
|
||||
__('Allows performing SHOW CREATE VIEW queries.')
|
||||
),
|
||||
array(
|
||||
'Delete_history_priv',
|
||||
'DELETE HISTORY',
|
||||
$GLOBALS['strPrivDescDeleteHistoricalRows']
|
||||
),
|
||||
array(
|
||||
'Delete versioning rows_priv',
|
||||
'DELETE HISTORY',
|
||||
$GLOBALS['strPrivDescDeleteHistoricalRows']
|
||||
),
|
||||
array(
|
||||
'Create_routine_priv',
|
||||
'CREATE ROUTINE',
|
||||
@ -1082,6 +1092,9 @@ class Privileges
|
||||
} elseif ($current_grant == 'Show view_priv') {
|
||||
$tmp_current_grant = 'ShowView_priv';
|
||||
$current_grant = 'Show_view_priv';
|
||||
} elseif ($current_grant == 'Delete versioning rows_priv') {
|
||||
$tmp_current_grant = 'DeleteHistoricalRows_priv';
|
||||
$current_grant = 'Delete_history_priv';
|
||||
} else {
|
||||
$tmp_current_grant = $current_grant;
|
||||
}
|
||||
|
||||
@ -71,6 +71,7 @@ $strPrivDescCreateTmpTable = __('Allows creating temporary tables.');
|
||||
$strPrivDescCreateUser = __('Allows creating, dropping and renaming user accounts.');
|
||||
$strPrivDescCreateView = __('Allows creating new views.');
|
||||
$strPrivDescDelete = __('Allows deleting data.');
|
||||
$strPrivDescDeleteHistoricalRows = __('Allows deleting historical rows.');
|
||||
$strPrivDescDropDb = __('Allows dropping databases and tables.');
|
||||
$strPrivDescDropTbl = __('Allows dropping tables.');
|
||||
$strPrivDescEvent = __('Allows to set up events for the event scheduler.');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user