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
bf8f30b5
Commit
bf8f30b5
authored
Apr 17, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into zippy.(none):/home/cmiller/work/mysql/mysql-5.0__ready
parents
fab001da
7b14ac64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+35
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+34
-0
No files found.
mysql-test/r/innodb.result
View file @
bf8f30b5
...
@@ -3241,3 +3241,38 @@ where t2.a between t1.a - interval 2 day and t1.a + interval 2 day;
...
@@ -3241,3 +3241,38 @@ where t2.a between t1.a - interval 2 day and t1.a + interval 2 day;
a a
a a
2005-10-01 2005-10-01
2005-10-01 2005-10-01
drop table t1, t2;
drop table t1, t2;
CREATE TABLE t1 (
a BIGINT(20) NOT NULL,
PRIMARY KEY (a)
)
ENGINE=INNODB DEFAULT CHARSET=UTF8;
CREATE TABLE t2 (
a BIGINT(20) NOT NULL,
b VARCHAR(128) NOT NULL,
c TEXT NOT NULL,
PRIMARY KEY (a,b),
KEY idx_t2_b_c (b,c(200)),
CONSTRAINT t_fk FOREIGN KEY (a) REFERENCES t1 (a)
ON DELETE CASCADE
)
ENGINE=INNODB DEFAULT CHARSET=UTF8;
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (1, 'bar', 'vbar');
INSERT INTO t2 VALUES (1, 'BAR2', 'VBAR');
INSERT INTO t2 VALUES (1, 'bar_bar', 'bibi');
INSERT INTO t2 VALUES (1, 'customer_over', '1');
SELECT * FROM t2 WHERE b = 'customer_over';
a b c
1 customer_over 1
SELECT * FROM t2 WHERE BINARY b = 'customer_over';
a b c
1 customer_over 1
SELECT DISTINCT p0.a FROM t2 p0 WHERE p0.b = 'customer_over';
a
1
/*
Bang: Empty result set, above was expected: */
SELECT DISTINCT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
a
1
SELECT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
a
1
drop table t2, t1;
mysql-test/t/innodb.test
View file @
bf8f30b5
...
@@ -2139,3 +2139,37 @@ insert into t2 values('2005-10-01');
...
@@ -2139,3 +2139,37 @@ insert into t2 values('2005-10-01');
select
*
from
t1
,
t2
select
*
from
t1
,
t2
where
t2
.
a
between
t1
.
a
-
interval
2
day
and
t1
.
a
+
interval
2
day
;
where
t2
.
a
between
t1
.
a
-
interval
2
day
and
t1
.
a
+
interval
2
day
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug #17152: Wrong result with BINARY comparison on aliased column
#
CREATE
TABLE
t1
(
a
BIGINT
(
20
)
NOT
NULL
,
PRIMARY
KEY
(
a
)
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
UTF8
;
CREATE
TABLE
t2
(
a
BIGINT
(
20
)
NOT
NULL
,
b
VARCHAR
(
128
)
NOT
NULL
,
c
TEXT
NOT
NULL
,
PRIMARY
KEY
(
a
,
b
),
KEY
idx_t2_b_c
(
b
,
c
(
200
)),
CONSTRAINT
t_fk
FOREIGN
KEY
(
a
)
REFERENCES
t1
(
a
)
ON
DELETE
CASCADE
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
UTF8
;
INSERT
INTO
t1
VALUES
(
1
);
INSERT
INTO
t2
VALUES
(
1
,
'bar'
,
'vbar'
);
INSERT
INTO
t2
VALUES
(
1
,
'BAR2'
,
'VBAR'
);
INSERT
INTO
t2
VALUES
(
1
,
'bar_bar'
,
'bibi'
);
INSERT
INTO
t2
VALUES
(
1
,
'customer_over'
,
'1'
);
SELECT
*
FROM
t2
WHERE
b
=
'customer_over'
;
SELECT
*
FROM
t2
WHERE
BINARY
b
=
'customer_over'
;
SELECT
DISTINCT
p0
.
a
FROM
t2
p0
WHERE
p0
.
b
=
'customer_over'
;
/* Bang: Empty result set, above was expected: */
SELECT
DISTINCT
p0
.
a
FROM
t2
p0
WHERE
BINARY
p0
.
b
=
'customer_over'
;
SELECT
p0
.
a
FROM
t2
p0
WHERE
BINARY
p0
.
b
=
'customer_over'
;
drop
table
t2
,
t1
;
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