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
9fc04b9f
Commit
9fc04b9f
authored
Aug 02, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
d03f0eec
c65e99e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
6 deletions
+35
-6
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+16
-1
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+14
-1
mysys/stacktrace.c
mysys/stacktrace.c
+3
-1
sql/item_func.cc
sql/item_func.cc
+2
-0
sql/sql_lex.cc
sql/sql_lex.cc
+0
-3
No files found.
mysql-test/r/func_misc.result
View file @
9fc04b9f
...
...
@@ -345,4 +345,19 @@ SELECT COALESCE(a) = COALESCE(b) FROM t1;
COALESCE(a) = COALESCE(b)
1
DROP TABLE t1;
End of tests
#
# Bug #54461: crash with longblob and union or update with subquery
#
CREATE TABLE t1 (a INT, b LONGBLOB);
INSERT INTO t1 VALUES (1, '2'), (2, '3'), (3, '2');
SELECT DISTINCT LEAST(a, (SELECT b FROM t1 LIMIT 1)) FROM t1 UNION SELECT 1;
LEAST(a, (SELECT b FROM t1 LIMIT 1))
1
2
SELECT DISTINCT GREATEST(a, (SELECT b FROM t1 LIMIT 1)) FROM t1 UNION SELECT 1;
GREATEST(a, (SELECT b FROM t1 LIMIT 1))
2
3
1
DROP TABLE t1;
End of 5.1 tests
mysql-test/t/func_misc.test
View file @
9fc04b9f
...
...
@@ -478,4 +478,17 @@ SELECT COALESCE(a) = COALESCE(b) FROM t1;
DROP
TABLE
t1
;
--
echo
End
of
tests
--
echo
#
--
echo
# Bug #54461: crash with longblob and union or update with subquery
--
echo
#
CREATE
TABLE
t1
(
a
INT
,
b
LONGBLOB
);
INSERT
INTO
t1
VALUES
(
1
,
'2'
),
(
2
,
'3'
),
(
3
,
'2'
);
SELECT
DISTINCT
LEAST
(
a
,
(
SELECT
b
FROM
t1
LIMIT
1
))
FROM
t1
UNION
SELECT
1
;
SELECT
DISTINCT
GREATEST
(
a
,
(
SELECT
b
FROM
t1
LIMIT
1
))
FROM
t1
UNION
SELECT
1
;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
mysys/stacktrace.c
View file @
9fc04b9f
...
...
@@ -83,7 +83,9 @@ void my_print_stacktrace(uchar* stack_bottom __attribute__((unused)),
#if BACKTRACE_DEMANGLE
char
__attribute__
((
weak
))
*
my_demangle
(
const
char
*
mangled_name
,
int
*
status
)
char
__attribute__
((
weak
))
*
my_demangle
(
const
char
*
mangled_name
__attribute__
((
unused
)),
int
*
status
__attribute__
((
unused
)))
{
return
NULL
;
}
...
...
sql/item_func.cc
View file @
9fc04b9f
...
...
@@ -2531,6 +2531,8 @@ void Item_func_min_max::fix_length_and_dec()
decimals
,
unsigned_flag
));
}
else
if
(
cmp_type
==
REAL_RESULT
)
max_length
=
float_length
(
decimals
);
cached_field_type
=
agg_field_type
(
args
,
arg_count
);
}
...
...
sql/sql_lex.cc
View file @
9fc04b9f
...
...
@@ -1436,8 +1436,6 @@ int lex_one_token(void *arg, void *yythd)
}
else
{
const
char
*
version_mark
=
lip
->
get_ptr
()
-
1
;
DBUG_ASSERT
(
*
version_mark
==
'!'
);
/*
Patch and skip the conditional comment to avoid it
being propagated infinitely (eg. to a slave).
...
...
@@ -1446,7 +1444,6 @@ int lex_one_token(void *arg, void *yythd)
comment_closed
=
!
consume_comment
(
lip
,
1
);
if
(
!
comment_closed
)
{
DBUG_ASSERT
(
pcom
==
version_mark
);
*
pcom
=
'!'
;
}
/* version allowed to have one level of comment inside. */
...
...
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