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
c0d2ce4c
Commit
c0d2ce4c
authored
Oct 17, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge moksha.com.br:/Users/davi/mysql/bugs/31608-5.1
into moksha.com.br:/Users/davi/mysql/mysql-5.1-runtime
parents
eea87d9e
e5125728
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
client/mysqltest.c
client/mysqltest.c
+6
-0
mysql-test/r/change_user.result
mysql-test/r/change_user.result
+2
-2
mysql-test/t/change_user.test
mysql-test/t/change_user.test
+1
-1
No files found.
client/mysqltest.c
View file @
c0d2ce4c
...
...
@@ -3063,6 +3063,12 @@ void do_change_user(struct st_command *command)
sizeof
(
change_user_args
)
/
sizeof
(
struct
command_arg
),
','
);
if
(
cur_con
->
stmt
)
{
mysql_stmt_close
(
cur_con
->
stmt
);
cur_con
->
stmt
=
NULL
;
}
if
(
!
ds_user
.
length
)
dynstr_set
(
&
ds_user
,
mysql
->
user
);
...
...
mysql-test/r/change_user.result
View file @
c0d2ce4c
...
...
@@ -34,8 +34,8 @@ NULL
SELECT GET_LOCK('bug31418', 1);
GET_LOCK('bug31418', 1)
1
SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418')
SELECT IS_USED_LOCK('bug31418')
= CONNECTION_ID()
;
IS_USED_LOCK('bug31418')
= CONNECTION_ID()
1
change_user
SELECT IS_FREE_LOCK('bug31418');
...
...
mysql-test/t/change_user.test
View file @
c0d2ce4c
...
...
@@ -28,7 +28,7 @@ SELECT @@session.sql_big_selects;
SELECT
IS_FREE_LOCK
(
'bug31418'
);
SELECT
IS_USED_LOCK
(
'bug31418'
);
SELECT
GET_LOCK
(
'bug31418'
,
1
);
SELECT
IS_USED_LOCK
(
'bug31418'
);
SELECT
IS_USED_LOCK
(
'bug31418'
)
=
CONNECTION_ID
()
;
--
echo
change_user
--
change_user
SELECT
IS_FREE_LOCK
(
'bug31418'
);
...
...
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