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: return auto-increment as generated #648

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

aaqilniz
Copy link
Contributor

@aaqilniz aaqilniz commented Jan 28, 2024

With the current version of Postgres, we can have the id as auto-increment by adding an identity constraint with the value set to ALWAYS. This PR enables the connector to return the generated as true if a column is set to be an auto-increment with this constraint.

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

@aaqilniz aaqilniz force-pushed the fix/return-auto-increment branch from 7c70abe to 4e05e55 Compare January 28, 2024 17:13
@aaqilniz aaqilniz force-pushed the fix/return-auto-increment branch from fe576c5 to 35030cd Compare January 28, 2024 17:45
@aaqilniz aaqilniz marked this pull request as ready for review January 28, 2024 17:47
@aaqilniz aaqilniz requested a review from samarpanB February 7, 2024 15:21
@aaqilniz aaqilniz merged commit a761e7e into loopbackio:master Mar 3, 2024
5 checks passed
@aaqilniz aaqilniz deleted the fix/return-auto-increment branch March 3, 2024 08:35
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