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
260bfaca
Commit
260bfaca
authored
May 28, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merged
innobase/row/row0mysql.c: Auto merged sql/hash_filo.h: Auto merged
parents
b4859c59
755d2018
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+5
-0
mysql-test/r/union.result
mysql-test/r/union.result
+14
-0
mysql-test/t/union.test
mysql-test/t/union.test
+10
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-1
No files found.
innobase/row/row0mysql.c
View file @
260bfaca
...
@@ -3151,6 +3151,7 @@ row_drop_table_for_mysql(
...
@@ -3151,6 +3151,7 @@ row_drop_table_for_mysql(
foreign
=
UT_LIST_GET_FIRST
(
table
->
referenced_list
);
foreign
=
UT_LIST_GET_FIRST
(
table
->
referenced_list
);
while
(
foreign
&&
foreign
->
foreign_table
==
table
)
{
while
(
foreign
&&
foreign
->
foreign_table
==
table
)
{
check_next_foreign:
foreign
=
UT_LIST_GET_NEXT
(
referenced_list
,
foreign
);
foreign
=
UT_LIST_GET_NEXT
(
referenced_list
,
foreign
);
}
}
...
@@ -3179,6 +3180,10 @@ row_drop_table_for_mysql(
...
@@ -3179,6 +3180,10 @@ row_drop_table_for_mysql(
goto
funct_exit
;
goto
funct_exit
;
}
}
if
(
foreign
&&
trx
->
check_foreigns
)
{
goto
check_next_foreign
;
}
if
(
table
->
n_mysql_handles_opened
>
0
)
{
if
(
table
->
n_mysql_handles_opened
>
0
)
{
ibool
added
;
ibool
added
;
...
...
mysql-test/r/union.result
View file @
260bfaca
...
@@ -1252,6 +1252,20 @@ t2 CREATE TABLE `t2` (
...
@@ -1252,6 +1252,20 @@ t2 CREATE TABLE `t2` (
`a` varchar(12) default NULL
`a` varchar(12) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
drop table t1,t2;
drop table t1,t2;
CREATE TABLE t1 (a mediumtext);
CREATE TABLE t2 (b varchar(20));
INSERT INTO t1 VALUES ('a'),('b');
SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
left(a,100000000)
a
b
create table t3 SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
show create table t3;
Table Create Table
t3 CREATE TABLE `t3` (
`left(a,100000000)` longtext
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop tables t1,t2,t3;
create table t1 ( id int not null auto_increment, primary key (id), col1 int);
create table t1 ( id int not null auto_increment, primary key (id), col1 int);
insert into t1 (col1) values (2),(3),(4),(5),(6);
insert into t1 (col1) values (2),(3),(4),(5),(6);
select 99 union all select id from t1 order by 1;
select 99 union all select id from t1 order by 1;
...
...
mysql-test/t/union.test
View file @
260bfaca
...
@@ -773,6 +773,16 @@ alter table t2 ROW_FORMAT=fixed;
...
@@ -773,6 +773,16 @@ alter table t2 ROW_FORMAT=fixed;
show
create
table
t2
;
show
create
table
t2
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# correct conversion long string to TEXT (BUG#10025)
#
CREATE
TABLE
t1
(
a
mediumtext
);
CREATE
TABLE
t2
(
b
varchar
(
20
));
INSERT
INTO
t1
VALUES
(
'a'
),(
'b'
);
SELECT
left
(
a
,
100000000
)
FROM
t1
UNION
SELECT
b
FROM
t2
;
create
table
t3
SELECT
left
(
a
,
100000000
)
FROM
t1
UNION
SELECT
b
FROM
t2
;
show
create
table
t3
;
drop
tables
t1
,
t2
,
t3
;
#
#
# Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM
# Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM
...
...
sql/ha_innodb.cc
View file @
260bfaca
...
@@ -6482,7 +6482,8 @@ ha_innobase::store_lock(
...
@@ -6482,7 +6482,8 @@ ha_innobase::store_lock(
if
((
lock_type
>=
TL_WRITE_CONCURRENT_INSERT
&&
if
((
lock_type
>=
TL_WRITE_CONCURRENT_INSERT
&&
lock_type
<=
TL_WRITE
)
&&
!
thd
->
in_lock_tables
lock_type
<=
TL_WRITE
)
&&
!
thd
->
in_lock_tables
&&
!
thd
->
tablespace_op
&&
!
thd
->
tablespace_op
&&
thd
->
lex
->
sql_command
!=
SQLCOM_TRUNCATE
)
{
&&
thd
->
lex
->
sql_command
!=
SQLCOM_TRUNCATE
&&
thd
->
lex
->
sql_command
!=
SQLCOM_CREATE_TABLE
)
{
lock_type
=
TL_WRITE_ALLOW_WRITE
;
lock_type
=
TL_WRITE_ALLOW_WRITE
;
}
}
...
...
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