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
85be88f5
Commit
85be88f5
authored
Feb 22, 2008
by
kaa@kaamos.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge kaamos.(none):/data/src/opt/bug33049/my51-bug33790
into kaamos.(none):/data/src/opt/mysql-5.1-opt
parents
6008c9b4
730bea63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+13
-1
sql/item_sum.cc
sql/item_sum.cc
+1
-0
No files found.
mysql-test/r/view.result
View file @
85be88f5
...
...
@@ -3629,6 +3629,14 @@ a
1
drop view v1, v2;
drop table t1, t2;
CREATE TABLE t1 (a INT);
CREATE VIEW v1 AS SELECT p.a AS a FROM t1 p, t1 q;
INSERT INTO t1 VALUES (1), (1);
SELECT MAX(a), COUNT(DISTINCT a) FROM v1 GROUP BY a;
MAX(a) COUNT(DISTINCT a)
1 1
DROP VIEW v1;
DROP TABLE t1;
End of 5.0 tests.
DROP DATABASE IF EXISTS `d-1`;
CREATE DATABASE `d-1`;
...
...
mysql-test/t/view.test
View file @
85be88f5
...
...
@@ -3489,6 +3489,19 @@ execute stmt;
drop
view
v1
,
v2
;
drop
table
t1
,
t2
;
#
# Bug #33049: Assert while running test-as3ap test(mysql-bench suite)
#
CREATE
TABLE
t1
(
a
INT
);
CREATE
VIEW
v1
AS
SELECT
p
.
a
AS
a
FROM
t1
p
,
t1
q
;
INSERT
INTO
t1
VALUES
(
1
),
(
1
);
SELECT
MAX
(
a
),
COUNT
(
DISTINCT
a
)
FROM
v1
GROUP
BY
a
;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
.
#
...
...
@@ -3562,4 +3575,3 @@ DROP TABLE t1;
--
echo
--
echo
End
of
5.1
tests
.
sql/item_sum.cc
View file @
85be88f5
...
...
@@ -600,6 +600,7 @@ Item_sum_hybrid::fix_fields(THD *thd, Item **ref)
result_field
=
0
;
null_value
=
1
;
fix_length_and_dec
();
item
=
item
->
real_item
();
if
(
item
->
type
()
==
Item
::
FIELD_ITEM
)
hybrid_field_type
=
((
Item_field
*
)
item
)
->
field
->
type
();
else
...
...
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