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
904723d7
Commit
904723d7
authored
Sep 28, 2005
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-5.0
into mysql.com:/home/mydev/mysql-5.0-5000
parents
1bf2fbdb
b3c3db08
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 @
904723d7
...
...
@@ -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
drop table t1, t2;
create table t1 (
a double(1
6,6
),
a double(1
4,4
),
b varchar(10),
index (a,b)
) engine=merge union=(t2,t3);
create table t2 (
a double(1
6,6
),
a double(1
4,4
),
b varchar(10),
index (a,b)
) engine=myisam;
create table t3 (
a double(1
6,6
),
a double(1
4,4
),
b varchar(10),
index (a,b)
) engine=myisam;
insert into t2 values ( null, '');
insert into t2 values ( 9999999999.9999
99
, '');
insert into t2 values ( 9999999999.9999, '');
insert into t3 select * from t2;
select min(a), max(a) from t1;
min(a) max(a)
9999999999.9999
98 9999999999.999998
9999999999.9999
9999999999.9999
flush tables;
select min(a), max(a) from t1;
min(a) max(a)
9999999999.9999
98 9999999999.999998
9999999999.9999
9999999999.9999
drop table t1, t2, t3;
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));
...
...
mysql-test/t/merge.test
View file @
904723d7
...
...
@@ -296,29 +296,25 @@ drop table t1, t2;
# non-debug build. But there is no guarantee that this will be always so.
#
create
table
t1
(
a
double
(
1
6
,
6
),
a
double
(
1
4
,
4
),
b
varchar
(
10
),
index
(
a
,
b
)
)
engine
=
merge
union
=
(
t2
,
t3
);
create
table
t2
(
a
double
(
1
6
,
6
),
a
double
(
1
4
,
4
),
b
varchar
(
10
),
index
(
a
,
b
)
)
engine
=
myisam
;
create
table
t3
(
a
double
(
1
6
,
6
),
a
double
(
1
4
,
4
),
b
varchar
(
10
),
index
(
a
,
b
)
)
engine
=
myisam
;
insert
into
t2
values
(
null
,
''
);
# We may have insufficient accuracy for 16 digits of '9'.
# Suppress a "truncate" warning due to accuracy problems.
--
disable_warnings
insert
into
t2
values
(
9999999999.999999
,
''
);
--
enable_warnings
insert
into
t2
values
(
9999999999.9999
,
''
);
insert
into
t3
select
*
from
t2
;
select
min
(
a
),
max
(
a
)
from
t1
;
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