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
684c7aba
Commit
684c7aba
authored
Dec 11, 2009
by
Evgeny Potemkin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merged fix for bug#49489.
parents
360b2ff4
1285ecd4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
mysql-test/r/select.result
mysql-test/r/select.result
+10
-0
mysql-test/t/select.test
mysql-test/t/select.test
+9
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-1
No files found.
mysql-test/r/select.result
View file @
684c7aba
...
...
@@ -4694,4 +4694,14 @@ HAVING v <= 't'
ORDER BY pk;
v
DROP TABLE t1;
#
# Bug#49489 Uninitialized cache led to a wrong result.
#
CREATE TABLE t1(c1 DOUBLE(5,4));
INSERT INTO t1 VALUES (9.1234);
SELECT * FROM t1 WHERE c1 < 9.12345;
c1
9.1234
DROP TABLE t1;
# End of test for bug#49489.
End of 5.1 tests
mysql-test/t/select.test
View file @
684c7aba
...
...
@@ -4014,4 +4014,13 @@ ORDER BY pk;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#49489 Uninitialized cache led to a wrong result.
--
echo
#
CREATE
TABLE
t1
(
c1
DOUBLE
(
5
,
4
));
INSERT
INTO
t1
VALUES
(
9.1234
);
SELECT
*
FROM
t1
WHERE
c1
<
9.12345
;
DROP
TABLE
t1
;
--
echo
# End of test for bug#49489.
--
echo
End
of
5.1
tests
sql/item_cmpfunc.cc
View file @
684c7aba
...
...
@@ -1031,7 +1031,7 @@ Item** Arg_comparator::cache_converted_constant(THD *thd, Item **value,
(
*
value
)
->
const_item
()
&&
type
!=
(
*
value
)
->
result_type
())
{
Item_cache
*
cache
=
Item_cache
::
get_cache
(
*
value
,
type
);
cache
->
s
tore
(
*
value
);
cache
->
s
etup
(
*
value
);
*
cache_item
=
cache
;
return
cache_item
;
}
...
...
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