Hi!
After upgrading to Postgres 12 statement
update temprid set
ContactFirstName =unnest(xpath(
'/E-Document/Document/DocumentParties/BuyerParty/ContactData/ContactFirstName/text()',x))::text,
yhik =unnest(xpath(
'/E-Document/Document/DocumentItem/ItemEntry/BaseUnit/text()',x))::text
from t
throws error
set-returning functions are not allowed in UPDATE
How to fix this ?
Maybe there is simply change which makes this statement work ?
Result should by any value of xpath expression in case if xpath returns
multiple values
In Postgres 9.1 it worked.
Andrus.