We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e24c3d commit 2df2d39Copy full SHA for 2df2d39
src/Query/Mysql/ConcatWs.php
@@ -28,11 +28,11 @@ public function parse(Parser $parser): void
28
$this->values[] = $parser->ArithmeticExpression();
29
30
// Add the rest of the strings to the values array. CONCAT_WS must
31
- // be used with at least 2 strings not including the separator.
+ // be used with at least 1 string not including the separator.
32
33
$lexer = $parser->getLexer();
34
35
- while (count($this->values) < 3 || $lexer->lookahead->type === TokenType::T_COMMA) {
+ while (count($this->values) < 2 || $lexer->lookahead->type === TokenType::T_COMMA) {
36
$parser->match(TokenType::T_COMMA);
37
$peek = $lexer->glimpse();
38
0 commit comments