group_concat in Sqlite with jooq

182 views
Skip to first unread message

spiel.c...@gmail.com

unread,
Jan 13, 2014, 1:20:23 AM1/13/14
to jooq...@googlegroups.com
Hello,

I am facing problems with using the groupConcat function in jooq with Sqlite.
It is translated by jooq into the 'listagg' SQL function which is not available in Sqlite, therefore the query fails. However the group_concat function is available in Sqlite so jooq should use this function instead.

Thanks and best regards

Christian

Lukas Eder

unread,
Jan 13, 2014, 5:20:56 AM1/13/14
to jooq...@googlegroups.com
Hello Christian,

You're right, this emulation of MySQL's GROUP_CONCAT should be supported by jOOQ. I have registered #2944 for this:

Cheers
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Lukas Eder

unread,
Jan 13, 2014, 6:05:11 AM1/13/14
to jooq...@googlegroups.com
This is implemented for jOOQ 3.3. Note that in the mean time, you can also use plain SQL to work around this missing feature. An example is given in the Javadoc of DSL.field():

In your case:

field("GROUP_CONCAT({0})", String.class, argument);
Regards,
Lukas

2014/1/13 Lukas Eder <lukas...@gmail.com>

alber...@gmail.com

unread,
Mar 4, 2020, 12:05:08 AM3/4/20
to jOOQ User Group
I don't think this works with SQLite on jooq 3.13.1 . I get a syntax error on "order" when I use listAgg.


On Monday, January 13, 2014 at 6:05:11 AM UTC-5, Lukas Eder wrote:
This is implemented for jOOQ 3.3. Note that in the mean time, you can also use plain SQL to work around this missing feature. An example is given in the Javadoc of DSL.field():

In your case:

field("GROUP_CONCAT({0})", String.class, argument);
Regards,
Lukas

2014/1/13 Lukas Eder <luka...@gmail.com>
Hello Christian,

You're right, this emulation of MySQL's GROUP_CONCAT should be supported by jOOQ. I have registered #2944 for this:

Cheers
Lukas
Hello,

I am facing problems with using the groupConcat function in jooq with Sqlite.
It is translated by jooq into the 'listagg' SQL function which is not available in Sqlite, therefore the query fails. However the group_concat function is available in Sqlite so jooq should use this function instead.

Thanks and best regards

Christian

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq...@googlegroups.com.

Lukas Eder

unread,
Mar 4, 2020, 2:33:22 AM3/4/20
to jOOQ User Group
Can you please open an issue with some more details on how to reproduce this?

Thanks,
Lukas 

To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/3ff42e8c-c9d1-456b-b77e-44a6ccf5ddda%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages