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
ce75b829
Commit
ce75b829
authored
Nov 23, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/b32558/b32558.5.0
into mysql.com:/home/ram/work/b32558/b32558.5.1
parents
6339719b
924bdf2c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
mysql-test/r/olap.result
mysql-test/r/olap.result
+8
-0
mysql-test/t/olap.test
mysql-test/t/olap.test
+9
-0
sql/item_func.h
sql/item_func.h
+1
-1
No files found.
mysql-test/r/olap.result
View file @
ce75b829
...
...
@@ -726,3 +726,11 @@ count(a)
3
drop table t1;
##############################################################
CREATE TABLE t1(a INT);
INSERT INTO t1 VALUES(0);
SELECT 1 FROM t1 GROUP BY (DATE(NULL)) WITH ROLLUP;
1
1
1
DROP TABLE t1;
End of 5.0 tests
mysql-test/t/olap.test
View file @
ce75b829
...
...
@@ -367,3 +367,12 @@ select count(a) from t1 group by null with rollup;
drop
table
t1
;
--
echo
##############################################################
#
# Bug #32558: group by null-returning expression with rollup causes crash
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
0
);
SELECT
1
FROM
t1
GROUP
BY
(
DATE
(
NULL
))
WITH
ROLLUP
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
sql/item_func.h
View file @
ce75b829
...
...
@@ -789,7 +789,7 @@ class Item_func_rollup_const :public Item_func
max_length
=
args
[
0
]
->
max_length
;
decimals
=
args
[
0
]
->
decimals
;
/* The item could be a NULL constant. */
null_value
=
args
[
0
]
->
null_value
;
null_value
=
args
[
0
]
->
is_null
()
;
}
};
...
...
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