Skip to content

Syntax error when using ORDER BY inside GROUP_CONCAT #15765

Answered by niden
jklaze asked this question in Q&A
Discussion options

You must be logged in to vote

GROUP_CONCAT is not supported natively by Phalcon's adapters since it is driver specific. So your query will not run.

In order to make Phalcon aware of this functionality, you can add a custom function to the dialect and that will do the trick. Have a look at this page and examples

https://docs.phalcon.io/4.0/en/db-phql#custom-dialect

Replies: 1 comment 2 replies

Comment options

niden
Nov 5, 2021
Maintainer Sponsor

You must be logged in to vote
2 replies
@jklaze
Comment options

@niden
Comment options

niden Nov 5, 2021
Maintainer Sponsor

Answer selected by jklaze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants