Skip to content
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

Fix _create for oracledb client #221

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Fix _create for oracledb client #221

merged 1 commit into from
Sep 4, 2019

Conversation

lucas-portela
Copy link
Contributor

@lucas-portela lucas-portela commented Sep 4, 2019

The _create method was throwing an error because oracledb insert was returning the counting of inserted rows instead of an array with the inserted rows id. The fix consists in adding a clause to set the "returning" parameter of insert to ["id"].

Summary

(If you have not already please refer to the contributing guideline as described
here
)

  • Tell us about the problem your pull request is solving.
  • Are there any open issues that are related to this?
  • Is this PR dependent on PRs in other repos?

If so, please mention them to keep the conversations linked together.

Other Information

If there's anything else that's important and relevant to your pull
request, mention that information here. This could include
benchmarks, or other information.

Your PR will be reviewed by a core team member and they will work with you to get your changes merged in a timely manner. If merged your PR will automatically be added to the changelog in the next release.

If your changes involve documentation updates please mention that and link the appropriate PR in feathers-docs.

Thanks for contributing to Feathers! ❤️

The _create  method was throwing an error because oracledb insert was returning the counting of changed rows instead of an array with row inserted rows id. The fix consists in adding a clause to set the "returning" parameter of insert to ["id"].
@daffl daffl merged commit 6531441 into feathersjs-ecosystem:master Sep 4, 2019
@daffl
Copy link
Member

daffl commented Sep 4, 2019

Thank you!

@lucas-portela lucas-portela deleted the patch-1 branch September 4, 2019 17:12
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.

2 participants