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
a13b5e9d
Commit
a13b5e9d
authored
Nov 23, 2007
by
ramil/ram@mysql.com/ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.0-engines
into mysql.com:/home/ram/work/b32558/b32558.5.0
parents
82bf8f36
924bdf2c
Changes
3
Hide 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 @
a13b5e9d
...
...
@@ -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 @
a13b5e9d
...
...
@@ -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 @
a13b5e9d
...
...
@@ -782,7 +782,7 @@ public:
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