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
e3bf53d2
Commit
e3bf53d2
authored
Aug 24, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-5.0
parents
dcd766b5
b0099db5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+3
-3
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+3
-3
No files found.
mysql-test/r/innodb.result
View file @
e3bf53d2
...
...
@@ -1376,7 +1376,7 @@ CREATE TABLE t1 (
`id` int(10) unsigned NOT NULL auto_increment,
`id_object` int(10) unsigned default '0',
`id_version` int(10) unsigned NOT NULL default '1',
label
varchar(100) NOT NULL default '',
`label`
varchar(100) NOT NULL default '',
`description` text,
PRIMARY KEY (`id`),
KEY `id_object` (`id_object`),
...
...
@@ -1390,8 +1390,8 @@ PRIMARY KEY (`id`),
KEY `id_version` (`id_version`)
) ENGINE=InnoDB;
INSERT INTO t2 VALUES("3524", "1"),("3525", "1"),("1794", "4"),("102", "5"),("1822", "6"),("3382", "9");
SELECT t2.id, t1.
label
FROM t2 INNER JOIN
(SELECT t1.id_object as id_object FROM t1 WHERE t1.
label
LIKE '%test%') AS lbl
SELECT t2.id, t1.
`label`
FROM t2 INNER JOIN
(SELECT t1.id_object as id_object FROM t1 WHERE t1.
`label`
LIKE '%test%') AS lbl
ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object);
id label
3382 Test
...
...
mysql-test/t/innodb.test
View file @
e3bf53d2
...
...
@@ -998,7 +998,7 @@ CREATE TABLE t1 (
`id`
int
(
10
)
unsigned
NOT
NULL
auto_increment
,
`id_object`
int
(
10
)
unsigned
default
'0'
,
`id_version`
int
(
10
)
unsigned
NOT
NULL
default
'1'
,
label
varchar
(
100
)
NOT
NULL
default
''
,
`label`
varchar
(
100
)
NOT
NULL
default
''
,
`description`
text
,
PRIMARY
KEY
(
`id`
),
KEY
`id_object`
(
`id_object`
),
...
...
@@ -1016,8 +1016,8 @@ CREATE TABLE t2 (
INSERT
INTO
t2
VALUES
(
"3524"
,
"1"
),(
"3525"
,
"1"
),(
"1794"
,
"4"
),(
"102"
,
"5"
),(
"1822"
,
"6"
),(
"3382"
,
"9"
);
SELECT
t2
.
id
,
t1
.
label
FROM
t2
INNER
JOIN
(
SELECT
t1
.
id_object
as
id_object
FROM
t1
WHERE
t1
.
label
LIKE
'%test%'
)
AS
lbl
SELECT
t2
.
id
,
t1
.
`label`
FROM
t2
INNER
JOIN
(
SELECT
t1
.
id_object
as
id_object
FROM
t1
WHERE
t1
.
`label`
LIKE
'%test%'
)
AS
lbl
ON
(
t2
.
id
=
lbl
.
id_object
)
INNER
JOIN
t1
ON
(
t2
.
id
=
t1
.
id_object
);
drop
table
t1
,
t2
;
...
...
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