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
ec7e0b7b
Commit
ec7e0b7b
authored
Sep 21, 2016
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
parent
8b51bacf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
1 deletion
+53
-1
mysql-test/r/func_group.result
mysql-test/r/func_group.result
+9
-0
mysql-test/r/innodb_group.result
mysql-test/r/innodb_group.result
+13
-0
mysql-test/t/func_group.test
mysql-test/t/func_group.test
+9
-0
mysql-test/t/innodb_group.test
mysql-test/t/innodb_group.test
+22
-0
sql/item_sum.h
sql/item_sum.h
+0
-1
No files found.
mysql-test/r/func_group.result
View file @
ec7e0b7b
...
...
@@ -2432,5 +2432,14 @@ c1
3
drop table t1,t2;
#
# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
#
CREATE TABLE t1 (i INT, KEY(i)) ENGINE=MyISAM;
INSERT INTO t1 VALUES (10),(20),(30);
SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
STDDEV(1)
0.0000
DROP TABLE t1;
#
# End of 10.1 tests
#
mysql-test/r/innodb_group.result
0 → 100644
View file @
ec7e0b7b
#
# Start of 10.1 tests
#
#
# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
#
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
STDDEV(1)
DROP TABLE t1;
#
# End of 10.1 tests
#
mysql-test/t/func_group.test
View file @
ec7e0b7b
...
...
@@ -1679,6 +1679,15 @@ select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(
select
c1
from
t1
having
c1
>=
(
select
t
.
c1
as
c
from
t2
t
order
by
(
select
min
(
t1
.
c1
+
tt
.
c1
)
from
t2
tt
));
drop
table
t1
,
t2
;
--
echo
#
--
echo
# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
--
echo
#
CREATE
TABLE
t1
(
i
INT
,
KEY
(
i
))
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
10
),(
20
),(
30
);
SELECT
DISTINCT
STDDEV
(
1
)
FROM
t1
GROUP
BY
i
ORDER
BY
BENCHMARK
(
0
,
BIT_XOR
(
i
));
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.1 tests
--
echo
#
mysql-test/t/innodb_group.test
0 → 100644
View file @
ec7e0b7b
#
# Tests involving GROUP BY, aggregate functions and InnoDB
#
--
source
include
/
have_innodb
.
inc
--
echo
#
--
echo
# Start of 10.1 tests
--
echo
#
--
echo
#
--
echo
# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
--
echo
#
CREATE
TABLE
t1
(
i
INT
)
ENGINE
=
InnoDB
;
SELECT
DISTINCT
STDDEV
(
1
)
FROM
t1
GROUP
BY
i
ORDER
BY
BENCHMARK
(
0
,
BIT_XOR
(
i
));
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.1 tests
--
echo
#
sql/item_sum.h
View file @
ec7e0b7b
...
...
@@ -1084,7 +1084,6 @@ public:
fixed
=
true
;
}
table_map
used_tables
()
const
{
return
(
table_map
)
1L
;
}
void
set_result_field
(
Field
*
)
{
DBUG_ASSERT
(
0
);
}
void
save_in_result_field
(
bool
no_conversions
)
{
DBUG_ASSERT
(
0
);
}
};
...
...
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