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
c23c1dc3
Commit
c23c1dc3
authored
Sep 01, 2005
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1
into moonbone.local:/work/12861-bug-4.1-mysql
parents
9a913689
f1fb30a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+3
-0
mysql-test/t/func_gconcat.test
mysql-test/t/func_gconcat.test
+5
-0
sql/item_sum.cc
sql/item_sum.cc
+1
-3
No files found.
mysql-test/r/func_gconcat.result
View file @
c23c1dc3
...
...
@@ -548,3 +548,6 @@ FROM t1 JOIN t2 ON t1.bID = t2.bID;
COUNT(*) GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
2 test
DROP TABLE t1,t2;
select * from (select group_concat('c') from DUAL) t;
group_concat('c')
NULL
mysql-test/t/func_gconcat.test
View file @
c23c1dc3
...
...
@@ -343,4 +343,9 @@ SELECT COUNT(*), GROUP_CONCAT(DISTINCT t2.somename SEPARATOR ' |')
DROP
TABLE
t1
,
t2
;
#
# Bug #12861 hang with group_concat insubquery FROM DUAL
#
select
*
from
(
select
group_concat
(
'c'
)
from
DUAL
)
t
;
# End of 4.1 tests
sql/item_sum.cc
View file @
c23c1dc3
...
...
@@ -1916,7 +1916,7 @@ Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
}
thd
->
allow_sum_func
=
0
;
maybe_null
=
0
;
maybe_null
=
1
;
item_thd
=
thd
;
/*
...
...
@@ -1929,8 +1929,6 @@ Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
args
[
i
]
->
fix_fields
(
thd
,
tables
,
args
+
i
))
||
args
[
i
]
->
check_cols
(
1
))
return
1
;
if
(
i
<
arg_count_field
)
maybe_null
|=
args
[
i
]
->
maybe_null
;
}
if
(
agg_item_charsets
(
collation
,
func_name
(),
...
...
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