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
90300c07
Commit
90300c07
authored
Jun 28, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug3-4.1
parents
dadf91f0
3aca0a0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
mysql-test/r/select.result
mysql-test/r/select.result
+9
-0
mysql-test/t/select.test
mysql-test/t/select.test
+15
-0
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+6
-0
No files found.
mysql-test/r/select.result
View file @
90300c07
...
...
@@ -2515,3 +2515,12 @@ SELECT b FROM t1 WHERE b=0x8000000000000000;
b
9223372036854775808
DROP TABLE t1;
CREATE TABLE `t1` ( `gid` int(11) default NULL, `uid` int(11) default NULL);
CREATE TABLE `t2` ( `ident` int(11) default NULL, `level` char(16) default NULL);
INSERT INTO `t2` VALUES (0,'READ');
CREATE TABLE `t3` ( `id` int(11) default NULL, `name` char(16) default NULL);
INSERT INTO `t3` VALUES (1,'fs');
select * from t3 left join t1 on t3.id = t1.uid, t2 where t2.ident in (0, t1.gid, t3.id, 0);
id name gid uid ident level
1 fs NULL NULL 0 READ
drop table t1,t2,t3;
mysql-test/t/select.test
View file @
90300c07
...
...
@@ -2060,3 +2060,18 @@ CREATE TABLE t1 (b BIGINT(20) UNSIGNED NOT NULL, PRIMARY KEY (b));
INSERT
INTO
t1
VALUES
(
0x8000000000000000
);
SELECT
b
FROM
t1
WHERE
b
=
0x8000000000000000
;
DROP
TABLE
t1
;
#
# IN with outer join condition (BUG#9393)
#
CREATE
TABLE
`t1`
(
`gid`
int
(
11
)
default
NULL
,
`uid`
int
(
11
)
default
NULL
);
CREATE
TABLE
`t2`
(
`ident`
int
(
11
)
default
NULL
,
`level`
char
(
16
)
default
NULL
);
INSERT
INTO
`t2`
VALUES
(
0
,
'READ'
);
CREATE
TABLE
`t3`
(
`id`
int
(
11
)
default
NULL
,
`name`
char
(
16
)
default
NULL
);
INSERT
INTO
`t3`
VALUES
(
1
,
'fs'
);
select
*
from
t3
left
join
t1
on
t3
.
id
=
t1
.
uid
,
t2
where
t2
.
ident
in
(
0
,
t1
.
gid
,
t3
.
id
,
0
);
drop
table
t1
,
t2
,
t3
;
sql/item_cmpfunc.h
View file @
90300c07
...
...
@@ -769,6 +769,12 @@ class Item_func_in :public Item_int_func
bool
nulls_in_row
();
bool
is_bool_func
()
{
return
1
;
}
CHARSET_INFO
*
compare_collation
()
{
return
cmp_collation
.
collation
;
}
/*
IN() protect from NULL only first argument, if construction like
"expression IN ()" will be allowed, we will need to check number of
argument here, because "NOT(NULL IN ())" is TRUE.
*/
table_map
not_null_tables
()
const
{
return
args
[
0
]
->
not_null_tables
();
}
};
/* Functions used by where clause */
...
...
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