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
09b58654
Commit
09b58654
authored
Feb 17, 2016
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9511 Valgrind warnings 'Invalid read' in Field_newdate::cmp and Field_newdate::val_str
parent
e8085d1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
include/byte_order_generic_x86_64.h
include/byte_order_generic_x86_64.h
+1
-1
mysql-test/r/type_date.result
mysql-test/r/type_date.result
+9
-0
mysql-test/t/type_date.test
mysql-test/t/type_date.test
+7
-0
No files found.
include/byte_order_generic_x86_64.h
View file @
09b58654
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
Attention: Please, note, uint3korr reads 4 bytes (not 3)!
Attention: Please, note, uint3korr reads 4 bytes (not 3)!
It means, that you have to provide enough allocated space.
It means, that you have to provide enough allocated space.
*/
*/
#if defined(HAVE_
purify
) && !defined(_WIN32)
#if defined(HAVE_
valgrind
) && !defined(_WIN32)
#define uint3korr(A) (uint32) (((uint32) ((uchar) (A)[0])) +\
#define uint3korr(A) (uint32) (((uint32) ((uchar) (A)[0])) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
(((uint32) ((uchar) (A)[2])) << 16))
(((uint32) ((uchar) (A)[2])) << 16))
...
...
mysql-test/r/type_date.result
View file @
09b58654
...
@@ -438,3 +438,12 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -438,3 +438,12 @@ id select_type table type possible_keys key key_len ref rows Extra
select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
1
1
drop table t1;
drop table t1;
#
# MDEV-9511 Valgrind warnings 'Invalid read' in Field_newdate::cmp and Field_newdate::val_str
#
CREATE TABLE t1 (f1 DATE, f2 VARCHAR(1));
INSERT INTO t1 VALUES ('2003-04-27','a'),('1900-01-01','a');
SELECT GROUP_CONCAT(f2, IF(f1, f2, f1), f1 ORDER BY 2,1,3) FROM t1;
GROUP_CONCAT(f2, IF(f1, f2, f1), f1 ORDER BY 2,1,3)
aa1900-01-01,aa2003-04-27
DROP TABLE t1;
mysql-test/t/type_date.test
View file @
09b58654
...
@@ -385,3 +385,10 @@ select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
...
@@ -385,3 +385,10 @@ select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
select
1
from
t1
as
t1_0
inner
join
t1
as
t2
on
(
t1_0
.
a
<=>
now
())
join
t1
on
1
;
select
1
from
t1
as
t1_0
inner
join
t1
as
t2
on
(
t1_0
.
a
<=>
now
())
join
t1
on
1
;
drop
table
t1
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-9511 Valgrind warnings 'Invalid read' in Field_newdate::cmp and Field_newdate::val_str
--
echo
#
CREATE
TABLE
t1
(
f1
DATE
,
f2
VARCHAR
(
1
));
INSERT
INTO
t1
VALUES
(
'2003-04-27'
,
'a'
),(
'1900-01-01'
,
'a'
);
SELECT
GROUP_CONCAT
(
f2
,
IF
(
f1
,
f2
,
f1
),
f1
ORDER
BY
2
,
1
,
3
)
FROM
t1
;
DROP
TABLE
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