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
b3c3db08
Commit
b3c3db08
authored
Sep 28, 2005
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-4.1-4100
into mysql.com:/home/mydev/mysql-5.0-5000
parents
f8bb9a4b
a3618b12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
mysql-test/r/merge.result
mysql-test/r/merge.result
+6
-6
mysql-test/t/merge.test
mysql-test/t/merge.test
+4
-8
No files found.
mysql-test/r/merge.result
View file @
b3c3db08
...
@@ -654,30 +654,30 @@ create table t3 engine=merge union=(t1, t2) select (select max(a) from t2);
...
@@ -654,30 +654,30 @@ create table t3 engine=merge union=(t1, t2) select (select max(a) from t2);
ERROR HY000: You can't specify target table 't2' for update in FROM clause
ERROR HY000: You can't specify target table 't2' for update in FROM clause
drop table t1, t2;
drop table t1, t2;
create table t1 (
create table t1 (
a double(1
6,6
),
a double(1
4,4
),
b varchar(10),
b varchar(10),
index (a,b)
index (a,b)
) engine=merge union=(t2,t3);
) engine=merge union=(t2,t3);
create table t2 (
create table t2 (
a double(1
6,6
),
a double(1
4,4
),
b varchar(10),
b varchar(10),
index (a,b)
index (a,b)
) engine=myisam;
) engine=myisam;
create table t3 (
create table t3 (
a double(1
6,6
),
a double(1
4,4
),
b varchar(10),
b varchar(10),
index (a,b)
index (a,b)
) engine=myisam;
) engine=myisam;
insert into t2 values ( null, '');
insert into t2 values ( null, '');
insert into t2 values ( 9999999999.9999
99
, '');
insert into t2 values ( 9999999999.9999, '');
insert into t3 select * from t2;
insert into t3 select * from t2;
select min(a), max(a) from t1;
select min(a), max(a) from t1;
min(a) max(a)
min(a) max(a)
9999999999.9999
98 9999999999.999998
9999999999.9999
9999999999.9999
flush tables;
flush tables;
select min(a), max(a) from t1;
select min(a), max(a) from t1;
min(a) max(a)
min(a) max(a)
9999999999.9999
98 9999999999.999998
9999999999.9999
9999999999.9999
drop table t1, t2, t3;
drop table t1, t2, t3;
create table t1 (a int,b int,c int, index (a,b,c));
create table t1 (a int,b int,c int, index (a,b,c));
create table t2 (a int,b int,c int, index (a,b,c));
create table t2 (a int,b int,c int, index (a,b,c));
...
...
mysql-test/t/merge.test
View file @
b3c3db08
...
@@ -296,29 +296,25 @@ drop table t1, t2;
...
@@ -296,29 +296,25 @@ drop table t1, t2;
# non-debug build. But there is no guarantee that this will be always so.
# non-debug build. But there is no guarantee that this will be always so.
#
#
create
table
t1
(
create
table
t1
(
a
double
(
1
6
,
6
),
a
double
(
1
4
,
4
),
b
varchar
(
10
),
b
varchar
(
10
),
index
(
a
,
b
)
index
(
a
,
b
)
)
engine
=
merge
union
=
(
t2
,
t3
);
)
engine
=
merge
union
=
(
t2
,
t3
);
create
table
t2
(
create
table
t2
(
a
double
(
1
6
,
6
),
a
double
(
1
4
,
4
),
b
varchar
(
10
),
b
varchar
(
10
),
index
(
a
,
b
)
index
(
a
,
b
)
)
engine
=
myisam
;
)
engine
=
myisam
;
create
table
t3
(
create
table
t3
(
a
double
(
1
6
,
6
),
a
double
(
1
4
,
4
),
b
varchar
(
10
),
b
varchar
(
10
),
index
(
a
,
b
)
index
(
a
,
b
)
)
engine
=
myisam
;
)
engine
=
myisam
;
insert
into
t2
values
(
null
,
''
);
insert
into
t2
values
(
null
,
''
);
# We may have insufficient accuracy for 16 digits of '9'.
insert
into
t2
values
(
9999999999.9999
,
''
);
# Suppress a "truncate" warning due to accuracy problems.
--
disable_warnings
insert
into
t2
values
(
9999999999.999999
,
''
);
--
enable_warnings
insert
into
t3
select
*
from
t2
;
insert
into
t3
select
*
from
t2
;
select
min
(
a
),
max
(
a
)
from
t1
;
select
min
(
a
),
max
(
a
)
from
t1
;
flush
tables
;
flush
tables
;
...
...
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