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
5e2f69d1
Commit
5e2f69d1
authored
Sep 26, 2006
by
jani@a88-112-41-254.elisa-laajakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more tests of field conversions.
parent
4bfe83d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/union.result
mysql-test/r/union.result
+27
-0
mysql-test/t/union.test
mysql-test/t/union.test
+15
-0
No files found.
mysql-test/r/union.result
View file @
5e2f69d1
...
@@ -1314,6 +1314,33 @@ Table Create Table
...
@@ -1314,6 +1314,33 @@ Table Create Table
t3 CREATE TABLE `t3` (
t3 CREATE TABLE `t3` (
`a` longtext
`a` longtext
) ENGINE=MyISAM DEFAULT CHARSET=latin1
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLES t1,t3;
CREATE TABLE t1 (a tinytext);
INSERT INTO t1 VALUES ('a');
CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
SHOW CREATE TABLE t3;
Table Create Table
t3 CREATE TABLE `t3` (
`a` varchar(510) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLES t1,t3;
CREATE TABLE t1 (a mediumtext);
INSERT INTO t1 VALUES ('a');
CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
SHOW CREATE TABLE t3;
Table Create Table
t3 CREATE TABLE `t3` (
`a` longtext
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLES t1,t3;
CREATE TABLE t1 (a tinyblob);
INSERT INTO t1 VALUES ('a');
CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
SHOW CREATE TABLE t3;
Table Create Table
t3 CREATE TABLE `t3` (
`a` varbinary(510) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLES t1,t2,t3;
DROP TABLES t1,t2,t3;
SET max_allowed_packet:= @tmp_max;
SET max_allowed_packet:= @tmp_max;
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);
...
...
mysql-test/t/union.test
View file @
5e2f69d1
...
@@ -809,6 +809,21 @@ CREATE TABLE t2 (b varchar(20));
...
@@ -809,6 +809,21 @@ CREATE TABLE t2 (b varchar(20));
INSERT
INTO
t1
VALUES
(
'a'
);
INSERT
INTO
t1
VALUES
(
'a'
);
CREATE
TABLE
t3
SELECT
REPEAT
(
a
,
20000000
)
AS
a
FROM
t1
UNION
SELECT
b
FROM
t2
;
CREATE
TABLE
t3
SELECT
REPEAT
(
a
,
20000000
)
AS
a
FROM
t1
UNION
SELECT
b
FROM
t2
;
SHOW
CREATE
TABLE
t3
;
SHOW
CREATE
TABLE
t3
;
DROP
TABLES
t1
,
t3
;
CREATE
TABLE
t1
(
a
tinytext
);
INSERT
INTO
t1
VALUES
(
'a'
);
CREATE
TABLE
t3
SELECT
REPEAT
(
a
,
2
)
AS
a
FROM
t1
UNION
SELECT
b
FROM
t2
;
SHOW
CREATE
TABLE
t3
;
DROP
TABLES
t1
,
t3
;
CREATE
TABLE
t1
(
a
mediumtext
);
INSERT
INTO
t1
VALUES
(
'a'
);
CREATE
TABLE
t3
SELECT
REPEAT
(
a
,
2
)
AS
a
FROM
t1
UNION
SELECT
b
FROM
t2
;
SHOW
CREATE
TABLE
t3
;
DROP
TABLES
t1
,
t3
;
CREATE
TABLE
t1
(
a
tinyblob
);
INSERT
INTO
t1
VALUES
(
'a'
);
CREATE
TABLE
t3
SELECT
REPEAT
(
a
,
2
)
AS
a
FROM
t1
UNION
SELECT
b
FROM
t2
;
SHOW
CREATE
TABLE
t3
;
DROP
TABLES
t1
,
t2
,
t3
;
DROP
TABLES
t1
,
t2
,
t3
;
SET
max_allowed_packet
:=
@
tmp_max
;
SET
max_allowed_packet
:=
@
tmp_max
;
...
...
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