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
5529b7fb
Commit
5529b7fb
authored
Sep 26, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more tests of field conversions.
parent
770e9b4b
Changes
2
Hide 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 @
5529b7fb
...
...
@@ -1314,6 +1314,33 @@ Table Create Table
t3 CREATE TABLE `t3` (
`a` longtext
) 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;
SET max_allowed_packet:= @tmp_max;
create table t1 ( id int not null auto_increment, primary key (id), col1 int);
...
...
mysql-test/t/union.test
View file @
5529b7fb
...
...
@@ -809,6 +809,21 @@ CREATE TABLE t2 (b varchar(20));
INSERT
INTO
t1
VALUES
(
'a'
);
CREATE
TABLE
t3
SELECT
REPEAT
(
a
,
20000000
)
AS
a
FROM
t1
UNION
SELECT
b
FROM
t2
;
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
;
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