Mailing List Archive

Davical 1.1.5 broke with Postgres 10
Specifically, this is blowing up:

Oct 15 11:07:08 NewFS postgres[92560]: [5-1] 2017-10-15 11:07:08.473 CDT
[92560]
 ERROR:  set-returning functions are not allowed in CASE at character 129
Oct 15 11:07:08 NewFS postgres[92560]: [5-2] 2017-10-15 11:07:08.473 CDT
[92560]
 HINT:  You might be able to move the set-returning function into a
LATERAL FROM
 item.
Oct 15 11:07:08 NewFS postgres[92560]: [5-3] 2017-10-15 11:07:08.473 CDT
[92560]
 QUERY:
Oct 15 11:07:08 NewFS postgres[92560]: [5-4]      SELECT group_id FROM
group_mem
ber WHERE member_id = $1
Oct 15 11:07:08 NewFS postgres[92560]: [5-5]          UNION
Oct 15 11:07:08 NewFS postgres[92560]: [5-6]      SELECT expanded.g_id
FROM (SELECT CASE WHEN $2 > 0 THEN expand_memberships( group_id, $2 - 1)
END AS g_id
Oct 15 11:07:08 NewFS postgres[92560]:
[5-7]                                   FROM group_member WHERE
member_id = $1) AS expanded
Oct 15 11:07:08 NewFS postgres[92560]: [5-8]                          
WHERE expanded.g_id IS NOT NULL;

Postgres 10 made this change and it appears the impacted queries have
not been updated in Davical as of yet....

--
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
Re: Davical 1.1.5 broke with Postgres 10 [ In reply to ]
Hi Karl,

> Oct 15 11:07:08 NewFS postgres[92560]: [5-1] 2017-10-15 11:07:08.473 CDT
> [92560]
> ?ERROR:? set-returning functions are not allowed in CASE at character 129


> Postgres 10 made this change and it appears the impacted queries have
> not been updated in Davical as of yet....

this is fixed by
https://gitlab.com/davical-project/davical/commit/39001794a3121c33c8cba50398b653a94328be40
to be released ASAP...

Paul: is your bugfix ready, or do you want to postpone until 1.1.7?

Florian
Re: Davical 1.1.5 broke with Postgres 10 [ In reply to ]
On 10/16/2017 05:03, Florian Schlichting wrote:
> Hi Karl,
>
>> Oct 15 11:07:08 NewFS postgres[92560]: [5-1] 2017-10-15 11:07:08.473 CDT
>> [92560]
>> ?ERROR:? set-returning functions are not allowed in CASE at character 129
>
>> Postgres 10 made this change and it appears the impacted queries have
>> not been updated in Davical as of yet....
> this is fixed by
> https://gitlab.com/davical-project/davical/commit/39001794a3121c33c8cba50398b653a94328be40
> to be released ASAP...
>
> Paul: is your bugfix ready, or do you want to postpone until 1.1.7?
>
> Florian
>
Thank you; I have manually applied the new functions definitions.? There
is a package upgrade from FreeBSD available, but it doesn't have a
different version number (still 1.1.5 although with a _1 suffix) and I
do not know, as of yet, whether that includes this or not -- I've not
checked their update.

--
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/