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
dc51624d
Commit
dc51624d
authored
Apr 09, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.0
into gw.mysql.r18.ru:/usr/home/ram/work/4.0.b3376
parents
9afbd246
5dcbf248
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/r/func_group.result
mysql-test/r/func_group.result
+5
-0
mysql-test/t/func_group.test
mysql-test/t/func_group.test
+8
-0
sql/item_sum.h
sql/item_sum.h
+1
-0
No files found.
mysql-test/r/func_group.result
View file @
dc51624d
...
...
@@ -256,3 +256,8 @@ bit_and(col) bit_or(col)
18446744073709551614 18446744073709551614
18446744073709551615 18446744073709551615
drop table t1;
create table t1 (a int);
select avg(2) from t1;
avg(2)
NULL
drop table t1;
mysql-test/t/func_group.test
View file @
dc51624d
...
...
@@ -155,3 +155,11 @@ insert into t1 values (-1), (-2), (-3);
select
bit_and
(
col
),
bit_or
(
col
)
from
t1
;
select
SQL_BIG_RESULT
bit_and
(
col
),
bit_or
(
col
)
from
t1
group
by
col
;
drop
table
t1
;
#
# Bug #3376: avg() and an empty table
#
create
table
t1
(
a
int
);
select
avg
(
2
)
from
t1
;
drop
table
t1
;
sql/item_sum.h
View file @
dc51624d
...
...
@@ -249,6 +249,7 @@ class Item_sum_avg :public Item_sum_num
void
update_field
();
Item
*
result_item
(
Field
*
field
)
{
return
new
Item_avg_field
(
this
);
}
void
no_rows_in_result
()
{}
const
char
*
func_name
()
const
{
return
"avg"
;
}
unsigned
int
size_of
()
{
return
sizeof
(
*
this
);}
};
...
...
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