Skip to content

Postgresql: sql snippet causes hang in parser #1582

@d2a-raudenaerde

Description

@d2a-raudenaerde

This postgres snippet causes the parser to hang:

            select
              t0.operatienr
            , case
                when
                    case when (t0.vc_begintijd_operatie is null or lpad((extract('hours' from t0.vc_begintijd_operatie::timestamp))::text,2,'0') ||':'|| lpad(extract('minutes' from t0.vc_begintijd_operatie::timestamp)::text,2,'0') = '00:00') then null
                         else (greatest(((extract('hours' from (t0.vc_eindtijd_operatie::timestamp-t0.vc_begintijd_operatie::timestamp))*60 + extract('minutes' from (t0.vc_eindtijd_operatie::timestamp-t0.vc_begintijd_operatie::timestamp)))/60)::numeric(12,2),0))*60
                end = 0 then null
                    else '25. Meer dan 4 uur'
                end                                                                                                                                                  
              as snijtijd_interval

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions