Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Can not update or delete #4

Open
k1ife opened this issue Feb 4, 2017 · 0 comments
Open

Can not update or delete #4

k1ife opened this issue Feb 4, 2017 · 0 comments

Comments

@k1ife
Copy link

k1ife commented Feb 4, 2017

Hello!
There is something i can not understand with wrapper - it works perfect on insert, but i can not update or delete entries. Every time i try to update, i get same error:

etest=# UPDATE articles SET content='yeay it updates\!' WHERE title='foo';
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

PostgreSQL-9.6.1
postgresql-9.6-python-multicorn
ElasticSearch-5.2

Mapping:

index: 'wrap',
      body: {
             mappings: {
                          articles: {
                            properties: {
                              title: {
                                type: 'text'
                              },
                              content: {
                                type: 'text'
                              }
                            }
                          }
                        }
                      }

What am i doing wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant