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
0acef25d
Commit
0acef25d
authored
May 06, 2006
by
kroki@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/tomash/src/mysql_ab/tmp_merge
into mysql.com:/home/tomash/src/mysql_ab/mysql-5.0-merge
parents
8eb1dd26
d87e1323
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
36 deletions
+76
-36
Docs/changelog-4.0.xml
Docs/changelog-4.0.xml
+0
-18
Docs/changelog-4.1.xml
Docs/changelog-4.1.xml
+0
-18
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+36
-0
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+38
-0
sql/item_func.cc
sql/item_func.cc
+2
-0
No files found.
Docs/changelog-4.0.xml
deleted
100755 → 0
View file @
8eb1dd26
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<!--
This is a dummy changelog file. Don't use it yet.
It merges upward without conflict.
-->
<appendix
id=
"news-4-0-x"
>
<title>
Changes in release 4.0.x
</title>
<para>
This is a dummy changelog file. Don't use it yet.
</para>
</appendix>
Docs/changelog-4.1.xml
deleted
100755 → 0
View file @
8eb1dd26
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<!--
This is a dummy changelog file. Don't use it yet.
It merges upward without conflict.
-->
<appendix
id=
"news-4-1-x"
>
<title>
Changes in release 4.1.x
</title>
<para>
This is a dummy changelog file. Don't use it yet.
</para>
</appendix>
mysql-test/r/func_misc.result
View file @
0acef25d
...
@@ -51,6 +51,42 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
...
@@ -51,6 +51,42 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
a
a
2004-01-06 12:34:00
2004-01-06 12:34:00
drop table t1;
drop table t1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (conn CHAR(7), connection_id INT);
INSERT INTO t1 VALUES ('default', CONNECTION_ID());
SELECT GET_LOCK('bug16501',600);
GET_LOCK('bug16501',600)
1
INSERT INTO t1 VALUES ('con1', CONNECTION_ID());
SELECT IS_USED_LOCK('bug16501') = connection_id
FROM t1
WHERE conn = 'default';
IS_USED_LOCK('bug16501') = connection_id
1
SELECT GET_LOCK('bug16501',600);
SELECT IS_USED_LOCK('bug16501') = CONNECTION_ID();
IS_USED_LOCK('bug16501') = CONNECTION_ID()
1
SELECT RELEASE_LOCK('bug16501');
RELEASE_LOCK('bug16501')
1
SELECT IS_USED_LOCK('bug16501') = connection_id
FROM t1
WHERE conn = 'con1';
IS_USED_LOCK('bug16501') = connection_id
1
GET_LOCK('bug16501',600)
1
SELECT IS_USED_LOCK('bug16501') = CONNECTION_ID();
IS_USED_LOCK('bug16501') = CONNECTION_ID()
1
SELECT RELEASE_LOCK('bug16501');
RELEASE_LOCK('bug16501')
1
SELECT IS_USED_LOCK('bug16501');
IS_USED_LOCK('bug16501')
NULL
DROP TABLE t1;
create table t1 as select uuid(), length(uuid());
create table t1 as select uuid(), length(uuid());
show create table t1;
show create table t1;
Table Create Table
Table Create Table
...
...
mysql-test/t/func_misc.test
View file @
0acef25d
...
@@ -38,6 +38,44 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
...
@@ -38,6 +38,44 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
drop
table
t1
;
drop
table
t1
;
#
# Bug#16501: IS_USED_LOCK does not appear to work
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
CREATE
TABLE
t1
(
conn
CHAR
(
7
),
connection_id
INT
);
INSERT
INTO
t1
VALUES
(
'default'
,
CONNECTION_ID
());
SELECT
GET_LOCK
(
'bug16501'
,
600
);
connect
(
con1
,
localhost
,
root
,,);
INSERT
INTO
t1
VALUES
(
'con1'
,
CONNECTION_ID
());
SELECT
IS_USED_LOCK
(
'bug16501'
)
=
connection_id
FROM
t1
WHERE
conn
=
'default'
;
send
SELECT
GET_LOCK
(
'bug16501'
,
600
);
connection
default
;
SELECT
IS_USED_LOCK
(
'bug16501'
)
=
CONNECTION_ID
();
SELECT
RELEASE_LOCK
(
'bug16501'
);
SELECT
IS_USED_LOCK
(
'bug16501'
)
=
connection_id
FROM
t1
WHERE
conn
=
'con1'
;
connection
con1
;
reap
;
SELECT
IS_USED_LOCK
(
'bug16501'
)
=
CONNECTION_ID
();
SELECT
RELEASE_LOCK
(
'bug16501'
);
SELECT
IS_USED_LOCK
(
'bug16501'
);
disconnect
con1
;
connection
default
;
DROP
TABLE
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
#
...
...
sql/item_func.cc
View file @
0acef25d
...
@@ -3011,6 +3011,7 @@ void item_user_lock_free(void)
...
@@ -3011,6 +3011,7 @@ void item_user_lock_free(void)
void
item_user_lock_release
(
User_level_lock
*
ull
)
void
item_user_lock_release
(
User_level_lock
*
ull
)
{
{
ull
->
locked
=
0
;
ull
->
locked
=
0
;
ull
->
thread_id
=
0
;
if
(
--
ull
->
count
)
if
(
--
ull
->
count
)
pthread_cond_signal
(
&
ull
->
cond
);
pthread_cond_signal
(
&
ull
->
cond
);
else
else
...
@@ -3218,6 +3219,7 @@ longlong Item_func_get_lock::val_int()
...
@@ -3218,6 +3219,7 @@ longlong Item_func_get_lock::val_int()
{
{
ull
->
locked
=
1
;
ull
->
locked
=
1
;
ull
->
thread
=
thd
->
real_id
;
ull
->
thread
=
thd
->
real_id
;
ull
->
thread_id
=
thd
->
thread_id
;
thd
->
ull
=
ull
;
thd
->
ull
=
ull
;
error
=
0
;
error
=
0
;
}
}
...
...
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