mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #583] [CLOSED] accept more than 2 parameters in CONCAT function #8409
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/583
Author: @broncha
Created: 2/19/2013
Status: ❌ Closed
Base:
master← Head:master📝 Commits (5)
369e433accept more than 2 parameters in CONCAT function9604cdeTested and parser validates at least 2 parameters given7dac400test added for CONCAT function and indentation fixed3a3d053calling getConcatExpression using call_user_func_array as number of arguments is not known removing dependency to patch DBAL6ac8f90maintaining backward compatibility📊 Changes
2 files changed (+67 additions, -8 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/AST/Functions/ConcatFunction.php(+24 -8)📝
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php(+43 -0)📄 Description
The DBAL Platform supports more then 2 parameters but the ConcatFunction only validates 2 parameters to CONCAT. This commit allows to pass more than 2 parameters to CONCAT. Also this change would require that
getConcatExpressionaccept array as a parameter. I have opened a pull request for that as well.Here is the pull request : https://github.com/doctrine/dbal/pull/275
I also propose that the function
getConcatExpressiononly accept array of string rather than multiple string arguments.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.