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
aaffb83a
Commit
aaffb83a
authored
Feb 12, 2010
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Plain Diff
Merge fix for BUG48438 to mysql-5.1-bugteam.
parents
3c86dd40
63058aa9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+13
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+11
-0
storage/myisam/mi_locking.c
storage/myisam/mi_locking.c
+1
-1
No files found.
mysql-test/r/myisam.result
View file @
aaffb83a
...
...
@@ -1868,6 +1868,19 @@ CHECKSUM TABLE t1 EXTENDED;
Table Checksum
test.t1 467455460
DROP TABLE t1;
#
# BUG#48438 - crash with error in unioned query against merge table and view...
#
SET GLOBAL table_open_cache=3;
CREATE TABLE t1(a INT);
SELECT 1 FROM t1 AS a1, t1 AS a2, t1 AS a3, t1 AS a4 FOR UPDATE;
1
SELECT TABLE_ROWS, DATA_LENGTH FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
TABLE_ROWS DATA_LENGTH
0 0
DROP TABLE t1;
SET GLOBAL table_open_cache=DEFAULT;
End of 5.0 tests
create table t1 (a int not null, key `a` (a) key_block_size=1024);
show create table t1;
...
...
mysql-test/t/myisam.test
View file @
aaffb83a
...
...
@@ -1198,6 +1198,17 @@ CHECKSUM TABLE t1 EXTENDED;
DROP
TABLE
t1
;
--
echo
#
--
echo
# BUG#48438 - crash with error in unioned query against merge table and view...
--
echo
#
SET
GLOBAL
table_open_cache
=
3
;
CREATE
TABLE
t1
(
a
INT
);
SELECT
1
FROM
t1
AS
a1
,
t1
AS
a2
,
t1
AS
a3
,
t1
AS
a4
FOR
UPDATE
;
SELECT
TABLE_ROWS
,
DATA_LENGTH
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_SCHEMA
=
'test'
AND
TABLE_NAME
=
't1'
;
DROP
TABLE
t1
;
SET
GLOBAL
table_open_cache
=
DEFAULT
;
--
echo
End
of
5.0
tests
...
...
storage/myisam/mi_locking.c
View file @
aaffb83a
...
...
@@ -321,8 +321,8 @@ void mi_update_status(void* param)
(
long
)
info
->
s
->
state
.
state
.
data_file_length
));
#endif
info
->
s
->
state
.
state
=
*
info
->
state
;
info
->
state
=
&
info
->
s
->
state
.
state
;
}
info
->
state
=
&
info
->
s
->
state
.
state
;
info
->
append_insert_at_end
=
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