Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
700 stars 145 forks source link

update operation show error #179

Open wangjian2014 opened 7 years ago

wangjian2014 commented 7 years ago

the error is ERROR: Cannot transform anything else than mappings andsequences to rows CONTEXT: SQL statement "UPDATE articles_es SET title = NEW.title, content = NEW.content WHERE id = NEW.id" PL/pgSQL function reindex_article() line 3 at SQL statement anyone can help me ? thank you

I found the reason is python.c image

my python version is Python 2.7.6

I refer website url is https://yq.aliyun.com/articles/56824 https://github.com/Mikulas/pg-es-fdw

frafra commented 3 years ago

It happens to me if I do not use a list but an iterator instead.