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
832616f1
Commit
832616f1
authored
Oct 02, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/work/31095-bug-5.0-opt-mysql
parents
0ad23eb8
1a4df8a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
mysql-test/r/olap.result
mysql-test/r/olap.result
+11
-0
mysql-test/t/olap.test
mysql-test/t/olap.test
+9
-0
sql/item_func.h
sql/item_func.h
+2
-0
No files found.
mysql-test/r/olap.result
View file @
832616f1
...
@@ -715,3 +715,14 @@ a SUM(a)
...
@@ -715,3 +715,14 @@ a SUM(a)
4 4
4 4
NULL 14
NULL 14
DROP TABLE t1;
DROP TABLE t1;
#
# Bug#31095: Unexpected NULL constant caused server crash.
#
create table t1(a int);
insert into t1 values (1),(2),(3);
select count(a) from t1 group by null with rollup;
count(a)
3
3
drop table t1;
##############################################################
mysql-test/t/olap.test
View file @
832616f1
...
@@ -358,3 +358,12 @@ SELECT * FROM (SELECT a, SUM(a) FROM t1 GROUP BY a WITH ROLLUP) as t;
...
@@ -358,3 +358,12 @@ SELECT * FROM (SELECT a, SUM(a) FROM t1 GROUP BY a WITH ROLLUP) as t;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#31095: Unexpected NULL constant caused server crash.
--
echo
#
create
table
t1
(
a
int
);
insert
into
t1
values
(
1
),(
2
),(
3
);
select
count
(
a
)
from
t1
group
by
null
with
rollup
;
drop
table
t1
;
--
echo
##############################################################
sql/item_func.h
View file @
832616f1
...
@@ -749,6 +749,8 @@ class Item_func_rollup_const :public Item_func
...
@@ -749,6 +749,8 @@ class Item_func_rollup_const :public Item_func
collation
=
args
[
0
]
->
collation
;
collation
=
args
[
0
]
->
collation
;
max_length
=
args
[
0
]
->
max_length
;
max_length
=
args
[
0
]
->
max_length
;
decimals
=
args
[
0
]
->
decimals
;
decimals
=
args
[
0
]
->
decimals
;
/* The item could be a NULL constant. */
null_value
=
args
[
0
]
->
null_value
;
}
}
};
};
...
...
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