Skip to content

Commit 43c5634

Browse files
committed
fixes the signature of the GroupConcat function to contain the scalarvals argument, and makes the definition of GroupConcat more accurate
1 parent f5de044 commit 43c5634

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9649,11 +9649,13 @@ <h5>GroupConcat</h5>
96499649
SEPARATOR.</p>
96509650
<div class="defn">
96519651
<p><b>Definition: <span id="defn_aggGroupConcat">GroupConcat</span></b></p>
9652-
<pre class="code nohighlight">literal GroupConcat(sequence S)</pre>
9653-
<p>If the "separator" scalar argument is absent from GROUP_CONCAT then it is taken to
9654-
be the "space" character, unicode codepoint U+0020.</p>
9652+
<pre class="code nohighlight">literal GroupConcat(sequence S, function scalarvals)</pre>
9653+
<p>If the scalarvals argument is absent from GROUP_CONCAT, then scalarvals is taken to
9654+
be the empty function.</p>
9655+
<p>|separator| = scalarvals("separator") if scalarvals is defined for the argument "separator"</p>
9656+
<p>|separator| = the "space" character, unicode codepoint U+0020, if scalarvals is undefined for the argument "separator"</p>
96559657
<p>L = Flatten(S)</p>
9656-
<p>GroupConcat(S, scalarvals) = GroupConcat(L, scalarvals("separator"))</p>
9658+
<p>GroupConcat(S, scalarvals) = GroupConcat(L, |separator|)</p>
96579659
<p>GroupConcat(L, sep) = "" if <a href="#defn_Card">Card</a>(L) = 0</p>
96589660
<p>GroupConcat(L, sep) = CONCAT("", L<sub>0</sub>) if
96599661
<a href="#defn_Card">Card</a>(L) = 1</p>

0 commit comments

Comments
 (0)