Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1db6c3a2
Commit
1db6c3a2
authored
Dec 08, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend the test case to better emulate 5.7 user table
parent
07e9b138
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
mysql-test/main/system_mysql_db_507.result
mysql-test/main/system_mysql_db_507.result
+6
-1
mysql-test/main/system_mysql_db_507.test
mysql-test/main/system_mysql_db_507.test
+6
-1
No files found.
mysql-test/main/
no_password_column-mdev-11170
.result
→
mysql-test/main/
system_mysql_db_507
.result
View file @
1db6c3a2
...
@@ -60,7 +60,12 @@ max_statement_time decimal(12,6) NO 0.000000
...
@@ -60,7 +60,12 @@ max_statement_time decimal(12,6) NO 0.000000
#
#
# Drop the password column.
# Drop the password column.
#
#
alter table mysql.user drop column password;
alter table mysql.user drop column password,
drop column is_role,
drop column default_role,
add column password_last_changed timestamp null default null after password_expired,
add column password_lifetime smallint unsigned after password_last_changed,
add column account_locked enum('n','y') character set utf8 not null default 'n' after password_lifetime;
flush privileges;
flush privileges;
#
#
# Create users without the password column present.
# Create users without the password column present.
...
...
mysql-test/main/
no_password_column-mdev-11170
.test
→
mysql-test/main/
system_mysql_db_507
.test
View file @
1db6c3a2
...
@@ -17,7 +17,12 @@ describe mysql.user;
...
@@ -17,7 +17,12 @@ describe mysql.user;
--
echo
#
--
echo
#
--
echo
# Drop the password column.
--
echo
# Drop the password column.
--
echo
#
--
echo
#
alter
table
mysql
.
user
drop
column
password
;
alter
table
mysql
.
user
drop
column
password
,
drop
column
is_role
,
drop
column
default_role
,
add
column
password_last_changed
timestamp
null
default
null
after
password_expired
,
add
column
password_lifetime
smallint
unsigned
after
password_last_changed
,
add
column
account_locked
enum
(
'n'
,
'y'
)
character
set
utf8
not
null
default
'n'
after
password_lifetime
;
flush
privileges
;
flush
privileges
;
--
echo
#
--
echo
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment