mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 06:05:32 +02:00
Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM
When executing ALTER TABLE all the attributes of the view were overwritten. This is contrary to the user's expectations. So some of the view attributes are preserved now : namely security and algorithm. This means that if they are not specified in ALTER VIEW their values are preserved from CREATE VIEW instead of being defaulted. mysql-test/r/view.result: Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM - test suite mysql-test/t/view.test: Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM - test suite sql/sql_lex.h: Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM - must make create_view_suid a tristate : on/off/unspecified sql/sql_view.cc: Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM - open the view to get it's attributes and put then as defaults for ALTER VIEW sql/sql_yacc.yy: Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM - must make create_view_suid a tristate : on/off/unspecified sql/table.h: Bug #21080: ALTER VIEW makes user restate SQL SECURITY mode, and ALGORITHM - must make create_view_suid a tristate : on/off/unspecified
This commit is contained in:
parent
bc6fd749b7
commit
c8673b09b8
6 changed files with 88 additions and 4 deletions
|
|
@ -8997,11 +8997,11 @@ view_algorithm_opt:
|
|||
|
||||
view_suid:
|
||||
/* empty */
|
||||
{ Lex->create_view_suid= TRUE; }
|
||||
{ Lex->create_view_suid= VIEW_SUID_DEFAULT; }
|
||||
| SQL_SYM SECURITY_SYM DEFINER_SYM
|
||||
{ Lex->create_view_suid= TRUE; }
|
||||
{ Lex->create_view_suid= VIEW_SUID_DEFINER; }
|
||||
| SQL_SYM SECURITY_SYM INVOKER_SYM
|
||||
{ Lex->create_view_suid= FALSE; }
|
||||
{ Lex->create_view_suid= VIEW_SUID_INVOKER; }
|
||||
;
|
||||
|
||||
view_tail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue