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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
048d545a
Commit
048d545a
authored
Jul 01, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code/testcase cleanups
parent
81a84424
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
26 deletions
+39
-26
mysql-test/r/insert_select.result
mysql-test/r/insert_select.result
+8
-11
mysql-test/r/join_outer.result
mysql-test/r/join_outer.result
+8
-0
mysql-test/t/insert_select.test
mysql-test/t/insert_select.test
+10
-13
mysql-test/t/join_outer.test
mysql-test/t/join_outer.test
+12
-0
sql/slave.cc
sql/slave.cc
+1
-2
No files found.
mysql-test/r/insert_select.result
View file @
048d545a
...
...
@@ -21,8 +21,7 @@ payoutID
20
22
drop table t1,t2;
DROP TABLE IF EXISTS crash1,crash2;
CREATE TABLE `crash1` (
CREATE TABLE `t1` (
`numeropost` bigint(20) unsigned NOT NULL default '0',
`icone` tinyint(4) unsigned NOT NULL default '0',
`numreponse` bigint(20) unsigned NOT NULL auto_increment,
...
...
@@ -37,7 +36,7 @@ KEY `date` (`date`),
KEY `pseudo` (`pseudo`),
KEY `numreponse` (`numreponse`)
) TYPE=MyISAM;
CREATE TABLE `
crash
2` (
CREATE TABLE `
t
2` (
`numeropost` bigint(20) unsigned NOT NULL default '0',
`icone` tinyint(4) unsigned NOT NULL default '0',
`numreponse` bigint(20) unsigned NOT NULL auto_increment,
...
...
@@ -52,22 +51,20 @@ KEY `date` (`date`),
KEY `pseudo` (`pseudo`),
KEY `numreponse` (`numreponse`)
) TYPE=MyISAM;
INSERT INTO
crash
2
INSERT INTO
t
2
(numeropost,icone,numreponse,contenu,pseudo,date,ip,signature) VALUES
(9,1,56,'test','joce','2001-07-25 13:50:53'
,3649052399,0);
INSERT INTO
crash
1 (numeropost,icone,contenu,pseudo,date,signature,ip)
SELECT 1618,icone,contenu,pseudo,date,signature,ip FROM
crash
2
INSERT INTO
t
1 (numeropost,icone,contenu,pseudo,date,signature,ip)
SELECT 1618,icone,contenu,pseudo,date,signature,ip FROM
t
2
WHERE numeropost=9 ORDER BY numreponse ASC;
show variables like '%bulk%';
Variable_name Value
bulk_insert_buffer_size 8388608
INSERT INTO
crash
1 (numeropost,icone,contenu,pseudo,date,signature,ip)
SELECT 1718,icone,contenu,pseudo,date,signature,ip FROM
crash
2
INSERT INTO
t
1 (numeropost,icone,contenu,pseudo,date,signature,ip)
SELECT 1718,icone,contenu,pseudo,date,signature,ip FROM
t
2
WHERE numeropost=9 ORDER BY numreponse ASC;
DROP TABLE IF EXISTS crash1,crash2;
drop table if exists t1;
drop table if exists t2;
DROP TABLE t1,t2;
create table t1(a int, unique(a));
insert into t1 values(2);
create table t2(a int);
...
...
mysql-test/r/join_outer.result
View file @
048d545a
...
...
@@ -659,3 +659,11 @@ i i i
1 NULL NULL
2 2 2
drop table t1,t2,t3;
create table t1 (f1 integer,f2 integer,f3 integer);
create table t2 (f2 integer,f4 integer);
create table t3 (f3 integer,f5 integer);
select * from t1
left outer join t2 using (f2)
left outer join t3 using (f3);
Unknown column 'test.t2.f3' in 'on clause'
drop table t1,t2,t3;
mysql-test/t/insert_select.test
View file @
048d545a
...
...
@@ -12,13 +12,13 @@ insert into t2 (payoutID) SELECT payoutID+10 FROM t1;
insert
ignore
into
t2
(
payoutID
)
SELECT
payoutID
+
10
FROM
t1
;
select
*
from
t2
;
drop
table
t1
,
t2
;
#
# bug in bulk insert optimization
# test case by Fournier Jocelyn <joc@presence-pc.com>
#
DROP
TABLE
IF
EXISTS
crash1
,
crash2
;
CREATE
TABLE
`crash1`
(
CREATE
TABLE
`t1`
(
`numeropost`
bigint
(
20
)
unsigned
NOT
NULL
default
'0'
,
`icone`
tinyint
(
4
)
unsigned
NOT
NULL
default
'0'
,
`numreponse`
bigint
(
20
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -34,7 +34,7 @@ CREATE TABLE `crash1` (
KEY
`numreponse`
(
`numreponse`
)
)
TYPE
=
MyISAM
;
CREATE
TABLE
`
crash
2`
(
CREATE
TABLE
`
t
2`
(
`numeropost`
bigint
(
20
)
unsigned
NOT
NULL
default
'0'
,
`icone`
tinyint
(
4
)
unsigned
NOT
NULL
default
'0'
,
`numreponse`
bigint
(
20
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -50,30 +50,27 @@ CREATE TABLE `crash2` (
KEY
`numreponse`
(
`numreponse`
)
)
TYPE
=
MyISAM
;
INSERT
INTO
crash
2
INSERT
INTO
t
2
(
numeropost
,
icone
,
numreponse
,
contenu
,
pseudo
,
date
,
ip
,
signature
)
VALUES
(
9
,
1
,
56
,
'test'
,
'joce'
,
'2001-07-25 13:50:53'
,
3649052399
,
0
);
INSERT
INTO
crash
1
(
numeropost
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
)
SELECT
1618
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
FROM
crash
2
INSERT
INTO
t
1
(
numeropost
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
)
SELECT
1618
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
FROM
t
2
WHERE
numeropost
=
9
ORDER
BY
numreponse
ASC
;
show
variables
like
'%bulk%'
;
INSERT
INTO
crash
1
(
numeropost
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
)
SELECT
1718
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
FROM
crash
2
INSERT
INTO
t
1
(
numeropost
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
)
SELECT
1718
,
icone
,
contenu
,
pseudo
,
date
,
signature
,
ip
FROM
t
2
WHERE
numeropost
=
9
ORDER
BY
numreponse
ASC
;
DROP
TABLE
IF
EXISTS
crash1
,
crash2
;
DROP
TABLE
t1
,
t2
;
# Addendum by Guilhem:
# Check if a partly-completed INSERT SELECT in a MyISAM table goes
# into the binlog
drop
table
if
exists
t1
;
drop
table
if
exists
t2
;
create
table
t1
(
a
int
,
unique
(
a
));
insert
into
t1
values
(
2
);
create
table
t2
(
a
int
);
...
...
mysql-test/t/join_outer.test
View file @
048d545a
...
...
@@ -425,3 +425,15 @@ insert into t2 values(2),(3);
insert
into
t3
values
(
2
),(
4
);
select
*
from
t1
natural
left
join
t2
natural
left
join
t3
;
drop
table
t1
,
t2
,
t3
;
#
# Test of USING
#
create
table
t1
(
f1
integer
,
f2
integer
,
f3
integer
);
create
table
t2
(
f2
integer
,
f4
integer
);
create
table
t3
(
f3
integer
,
f5
integer
);
--
error
1054
select
*
from
t1
left
outer
join
t2
using
(
f2
)
left
outer
join
t3
using
(
f3
);
drop
table
t1
,
t2
,
t3
;
sql/slave.cc
View file @
048d545a
...
...
@@ -2146,8 +2146,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
DBUG_ASSERT
(
rli
->
sql_thd
==
thd
);
if
(
sql_slave_killed
(
thd
,
rli
))
{
/* do not forget to free ev ! */
if
(
ev
)
delete
ev
;
delete
ev
;
return
1
;
}
if
(
ev
)
...
...
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