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
d31f1134
Commit
d31f1134
authored
Feb 22, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge kaamos.(none):/data/src/opt/bug33049/my50-bug33790
into kaamos.(none):/data/src/opt/mysql-5.0-opt
parents
5715dd97
36b9c7ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+13
-0
sql/item_sum.cc
sql/item_sum.cc
+1
-0
No files found.
mysql-test/r/view.result
View file @
d31f1134
...
...
@@ -3634,4 +3634,12 @@ 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.
mysql-test/t/view.test
View file @
d31f1134
...
...
@@ -3492,5 +3492,18 @@ 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
.
sql/item_sum.cc
View file @
d31f1134
...
...
@@ -597,6 +597,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