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
9349d000
Commit
9349d000
authored
Jun 23, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back testcase for lp:817966 (was lost in the merge)
parent
4ac87f75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
mysql-test/r/func_in.result
mysql-test/r/func_in.result
+13
-0
mysql-test/t/func_in.test
mysql-test/t/func_in.test
+18
-0
No files found.
mysql-test/r/func_in.result
View file @
9349d000
...
...
@@ -789,6 +789,19 @@ DROP TABLE t1;
# End of test BUG#13012483
#
End of 5.1 tests
create table t1 (a bigint, b int);
insert t1 values (1,1),(2,2),(3,3);
select * from t1 where a in ('2.1');
a b
select * from t1 where b in ('2.1');
a b
select * from t1 where a='2.1';
a b
select * from t1 where b='2.1';
a b
select * from t1 where IF(1,a,a)='2.1';
a b
drop table t1;
#
# LP bug#992380 Crash when creating PS for a query with
# subquery in WHERE (see also mysql bug#13012483)
...
...
mysql-test/t/func_in.test
View file @
9349d000
...
...
@@ -577,6 +577,24 @@ DROP TABLE t1;
--
echo
#
--
echo
End
of
5.1
tests
#
# lp:817966 int_column IN (string_constant)
#
# rather illogically, when BIGINT field is compared to a string,
# the string is converted to an integer, not to a double.
# When some other integer field (not BIGINT) is compared to a string,
# or when the BIGINT is not a field, but an expression, both
# operands are compared as doubles. The latter behavior is correct,
# according to the manual.
#
create
table
t1
(
a
bigint
,
b
int
);
insert
t1
values
(
1
,
1
),(
2
,
2
),(
3
,
3
);
select
*
from
t1
where
a
in
(
'2.1'
);
select
*
from
t1
where
b
in
(
'2.1'
);
select
*
from
t1
where
a
=
'2.1'
;
select
*
from
t1
where
b
=
'2.1'
;
select
*
from
t1
where
IF
(
1
,
a
,
a
)
=
'2.1'
;
drop
table
t1
;
--
echo
#
--
echo
# LP bug#992380 Crash when creating PS for a query with
--
echo
# subquery in WHERE (see also mysql bug#13012483)
...
...
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