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
8e8235ff
Commit
8e8235ff
authored
Feb 08, 2006
by
jmiller@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement a reviw comments
parent
e3bfdb9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
mysql-test/r/rpl_temporary.result
mysql-test/r/rpl_temporary.result
+5
-5
mysql-test/t/rpl_temporary.test
mysql-test/t/rpl_temporary.test
+5
-9
No files found.
mysql-test/r/rpl_temporary.result
View file @
8e8235ff
...
...
@@ -24,9 +24,9 @@ drop table if exists t1,t2;
create table t1(f int);
create table t2(f int);
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
create temporary table t3(f int)
ENGINE=MyISAM
;
create temporary table t3(f int);
insert into t3 select * from t1 where f<6;
create temporary table t3(f int)
ENGINE=MyISAM
;
create temporary table t3(f int);
insert into t2 select count(*) from t3;
insert into t3 select * from t1 where f>=4;
drop temporary table t3;
...
...
@@ -46,13 +46,13 @@ SET TIMESTAMP=1040323938;
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
SET TIMESTAMP=1040323945;
SET @@session.pseudo_thread_id=1;
create temporary table t3(f int)
ENGINE=MyISAM
;
create temporary table t3(f int);
SET TIMESTAMP=1040323952;
SET @@session.pseudo_thread_id=1;
insert into t3 select * from t1 where f<6;
SET TIMESTAMP=1040324145;
SET @@session.pseudo_thread_id=2;
create temporary table t3(f int)
ENGINE=MyISAM
;
create temporary table t3(f int);
SET TIMESTAMP=1040324186;
SET @@session.pseudo_thread_id=1;
insert into t2 select count(*) from t3;
...
...
@@ -73,4 +73,4 @@ f
5
7
drop table t1,t2;
create temporary table t3 (f int)
ENGINE=MyISAM
;
create temporary table t3 (f int);
mysql-test/t/rpl_temporary.test
View file @
8e8235ff
#########################################################
# 2006-02-07 By JBM according to 16552 MyISAM should be used
# As work around for NDB using temp tables.
##########################################################
--
source
include
/
master
-
slave
.
inc
...
...
@@ -60,12 +56,12 @@ create table t2(f int);
insert
into
t1
values
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
connection
con1
;
create
temporary
table
t3
(
f
int
)
ENGINE
=
MyISAM
;
create
temporary
table
t3
(
f
int
);
insert
into
t3
select
*
from
t1
where
f
<
6
;
sleep
1
;
connection
con2
;
create
temporary
table
t3
(
f
int
)
ENGINE
=
MyISAM
;
create
temporary
table
t3
(
f
int
);
sleep
1
;
connection
con1
;
...
...
@@ -103,13 +99,13 @@ insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
SET
TIMESTAMP
=
1040323945
;
SET
@@
session
.
pseudo_thread_id
=
1
;
create
temporary
table
t3
(
f
int
)
ENGINE
=
MyISAM
;
create
temporary
table
t3
(
f
int
);
SET
TIMESTAMP
=
1040323952
;
SET
@@
session
.
pseudo_thread_id
=
1
;
insert
into
t3
select
*
from
t1
where
f
<
6
;
SET
TIMESTAMP
=
1040324145
;
SET
@@
session
.
pseudo_thread_id
=
2
;
create
temporary
table
t3
(
f
int
)
ENGINE
=
MyISAM
;
create
temporary
table
t3
(
f
int
);
SET
TIMESTAMP
=
1040324186
;
SET
@@
session
.
pseudo_thread_id
=
1
;
insert
into
t2
select
count
(
*
)
from
t3
;
...
...
@@ -132,7 +128,7 @@ drop table t1,t2;
# Create last a temporary table that is not dropped at end to ensure that we
# don't get any memory leaks for this
create
temporary
table
t3
(
f
int
)
ENGINE
=
MyISAM
;
create
temporary
table
t3
(
f
int
);
sync_with_master
;
# The server will now close done
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