Skip to content

Separate delete from delete_counter#206

Open
davidw wants to merge 1 commit into
ErlyORM:masterfrom
davidw:delete_counter
Open

Separate delete from delete_counter#206
davidw wants to merge 1 commit into
ErlyORM:masterfrom
davidw:delete_counter

Conversation

@davidw

@davidw davidw commented Dec 1, 2014

Copy link
Copy Markdown
Contributor

Using delete for two different things - deleting records and deleting
keys from the counter table - was causing problems like:

#135

This commit introduces a delete_counter that only deletes keys from
the counter. The delete function only deletes records.

Fixes #135

Using delete for two different things - deleting records and deleting
keys from the counter table - was causing problems like:

ErlyORM#135

This commit introduces a delete_counter that only deletes keys from
the counter.  The delete function only deletes records.
@danikp

danikp commented Dec 23, 2014

Copy link
Copy Markdown
Member

As part of commit you updated pgsql adapter. But other connectors are not updated yet and I will postpone merge of your PR till we prepare changes in other connectors too.

@davidw

davidw commented Dec 23, 2014

Copy link
Copy Markdown
Contributor Author

I think we should figure out the general direction first. I'm also not 100% convinced of this code; the counters are kind of strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postgres: boss_db:delete() in transaction always rollbacks transaction if no 'counters' table exists in the db

2 participants