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
49f32c2f
Commit
49f32c2f
authored
Nov 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rurik.mysql.com:/home/igor/mysql-4.1
into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
parents
1b764b9b
6ecd35a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
mysql-test/r/func_in.result
mysql-test/r/func_in.result
+6
-0
mysql-test/t/func_in.test
mysql-test/t/func_in.test
+7
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-1
No files found.
mysql-test/r/func_in.result
View file @
49f32c2f
...
@@ -179,3 +179,9 @@ select 1 in ('1.1',2);
...
@@ -179,3 +179,9 @@ select 1 in ('1.1',2);
select 1 in ('1.1',2.0);
select 1 in ('1.1',2.0);
1 in ('1.1',2.0)
1 in ('1.1',2.0)
0
0
create table t1 (a char(20) character set binary);
insert into t1 values ('aa'), ('bb');
select * from t1 where a in (NULL, 'aa');
a
aa
drop table t1;
mysql-test/t/func_in.test
View file @
49f32c2f
...
@@ -89,3 +89,10 @@ select 1 in ('1.0',2.0);
...
@@ -89,3 +89,10 @@ select 1 in ('1.0',2.0);
select
1
in
(
1.0
,
'2.0'
);
select
1
in
(
1.0
,
'2.0'
);
select
1
in
(
'1.1'
,
2
);
select
1
in
(
'1.1'
,
2
);
select
1
in
(
'1.1'
,
2.0
);
select
1
in
(
'1.1'
,
2.0
);
# Test case for bug #6365
create
table
t1
(
a
char
(
20
)
character
set
binary
);
insert
into
t1
values
(
'aa'
),
(
'bb'
);
select
*
from
t1
where
a
in
(
NULL
,
'aa'
);
drop
table
t1
;
sql/item_cmpfunc.cc
View file @
49f32c2f
...
@@ -1749,7 +1749,8 @@ void Item_func_in::fix_length_and_dec()
...
@@ -1749,7 +1749,8 @@ void Item_func_in::fix_length_and_dec()
thd
->
set_n_backup_item_arena
(
arena
,
&
backup
);
thd
->
set_n_backup_item_arena
(
arena
,
&
backup
);
for
(
arg
=
args
+
1
,
arg_end
=
args
+
arg_count
;
arg
<
arg_end
;
arg
++
)
for
(
arg
=
args
+
1
,
arg_end
=
args
+
arg_count
;
arg
<
arg_end
;
arg
++
)
{
{
if
(
!
my_charset_same
(
cmp_collation
.
collation
,
if
(
!
arg
[
0
]
->
null_value
&&
!
my_charset_same
(
cmp_collation
.
collation
,
arg
[
0
]
->
collation
.
collation
))
arg
[
0
]
->
collation
.
collation
))
{
{
Item_string
*
conv
;
Item_string
*
conv
;
...
...
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