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
a9030325
Commit
a9030325
authored
Oct 02, 2007
by
evgen@moonbone.local
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
93d44a18
49af76ac
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 @
a9030325
...
@@ -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 @
a9030325
...
@@ -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 @
a9030325
...
@@ -749,6 +749,8 @@ public:
...
@@ -749,6 +749,8 @@ public:
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