On Wednesday, May 20, 2020, Igor Shmukler <igor(dot)shmukler(at)gmail(dot)com> wrote:
>
> ...
> FOR showing IN SELECT * FROM json_to_recordset(to_json(event_times))
> AS show(id INTEGER,
> times JSONB, startDate DATE, endDate DATE) LOOP
> IF showing.id > 0 THEN
> UPDATE
> event_shows
> SET
> start_date = showing.startDate, end_date = showing.endDate,
> times = showing.times
>
>
Try showing.”startDate” and showing.”endDate” ... (i.e., you need double
quotes around the case-sensitive identifier)
David J.