You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updatepublic.series ser set offeringId = (Select distinctoff.offeringIdfrompublic.offering off, public.observation o, public.observationhasoffering ohof whereser.seriesid=o.seriesidANDo.observationid=ohof.observationidANDohof.offeringId=off.offeringId);
Should be
updatepublic.series ser set offeringId = (Select distinctoff.offeringIdfrompublic.offering off, public.observation o, public.observationhasoffering ohof, public.series ser whereser.seriesid=o.seriesidANDo.observationid=ohof.observationidANDohof.offeringId=off.offeringId);
The text was updated successfully, but these errors were encountered:
I've been scripting the update of some 4.3.x databases to 4.4.0, using the PostgreSQL .sql files from the develop branch. If I include all the comments above except for the very last one, AFAIK it works OK, all the clients appear fine.
if I include the last comment, and add the ser alias definition I get the following error when converting:
ERROR: more than one row returned by a subquery used as an expression
STATEMENT: update public.series ser set offeringId = (Select distinct off.offeringId from public.offering off, public.observation o, public.observationhasoffering ohof, public.series ser where ser.seriesid = o.seriesid AND o.observationid = ohof.observationid AND ohof.offeringId = off.offeringId);
PG_update_43_44.sql
:FK_4ps6yv41rwnbu3q0let2v7
FK_3v5iovcndi9w0hgh827hcvivw
FK_g0f0mpuxn3co65uwud4pwxh4q
FK_m4nuof4x6w253biuu1r6ttnqc
;
to line 123 inPG_update_43_44.sql
:ser
to lline33 inPG_update_43_44_series_table.sql
:The text was updated successfully, but these errors were encountered: