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
730bea63
Commit
730bea63
authored
Feb 22, 2008
by
kaa@kaamos.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge kaamos.(none):/data/src/opt/bug33049/my50-bug33790
into kaamos.(none):/data/src/opt/bug33049/my51-bug33790
parents
6736c1b9
0a29b8b0
Changes
3
Show 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 @
730bea63
...
@@ -3629,6 +3629,14 @@ a
...
@@ -3629,6 +3629,14 @@ a
1
1
drop view v1, v2;
drop view v1, v2;
drop table t1, t2;
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.
End of 5.0 tests.
DROP DATABASE IF EXISTS `d-1`;
DROP DATABASE IF EXISTS `d-1`;
CREATE DATABASE `d-1`;
CREATE DATABASE `d-1`;
...
...
mysql-test/t/view.test
View file @
730bea63
...
@@ -3489,6 +3489,19 @@ execute stmt;
...
@@ -3489,6 +3489,19 @@ execute stmt;
drop
view
v1
,
v2
;
drop
view
v1
,
v2
;
drop
table
t1
,
t2
;
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
.
--
echo
End
of
5.0
tests
.
#
#
...
@@ -3562,4 +3575,3 @@ DROP TABLE t1;
...
@@ -3562,4 +3575,3 @@ DROP TABLE t1;
--
echo
--
echo
--
echo
End
of
5.1
tests
.
--
echo
End
of
5.1
tests
.
sql/item_sum.cc
View file @
730bea63
...
@@ -601,6 +601,7 @@ Item_sum_hybrid::fix_fields(THD *thd, Item **ref)
...
@@ -601,6 +601,7 @@ Item_sum_hybrid::fix_fields(THD *thd, Item **ref)
result_field
=
0
;
result_field
=
0
;
null_value
=
1
;
null_value
=
1
;
fix_length_and_dec
();
fix_length_and_dec
();
item
=
item
->
real_item
();
if
(
item
->
type
()
==
Item
::
FIELD_ITEM
)
if
(
item
->
type
()
==
Item
::
FIELD_ITEM
)
hybrid_field_type
=
((
Item_field
*
)
item
)
->
field
->
type
();
hybrid_field_type
=
((
Item_field
*
)
item
)
->
field
->
type
();
else
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