Skip to content

Add test for transaction support in count() #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2017
Merged

Add test for transaction support in count() #293

merged 1 commit into from
Sep 8, 2017

Conversation

lehni
Copy link
Contributor

@lehni lehni commented Aug 23, 2017

Description

As outlined in loopbackio/loopback-connector#114: When passing on a transaction object to connector.count(), it does not currently get passed on internally to the SQL execute() method, meaning that the count of the table outside the transaction will be counted and a wrong result will be returned.

Related issues

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

@slnode
Copy link

slnode commented Aug 23, 2017

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

@slnode
Copy link

slnode commented Aug 23, 2017

Can one of the admins verify this patch?

2 similar comments
@slnode
Copy link

slnode commented Aug 23, 2017

Can one of the admins verify this patch?

@slnode
Copy link

slnode commented Aug 23, 2017

Can one of the admins verify this patch?

@kjdelisle
Copy link
Contributor

@slnode test please

@kjdelisle
Copy link
Contributor

@lehni I've landed loopbackio/loopback-connector#114, so I'll re-run the tests shortly.

@kjdelisle
Copy link
Contributor

@slnode test please

@lehni
Copy link
Contributor Author

lehni commented Aug 31, 2017

@kjdelisle what's the next step in this PR?

@kjdelisle
Copy link
Contributor

@lehni Sorry, there's a lot of stuff going on around here these last few weeks, lots of context switching and I get notifications for everything in the strongloop org. :P

I'm landing this right now. :)

@kjdelisle kjdelisle merged commit f187f31 into loopbackio:master Sep 8, 2017
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.

6 participants