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

table.lastInsertID is misrepresented, should be moved to connection #351

Open
guzman-raphael opened this issue Mar 10, 2021 · 0 comments
Open

Comments

@guzman-raphael
Copy link
Collaborator

Feature Request

Problem

Currently, tables have a property lastInsertID which returns the last generated auto-incremented value. However, it is misrepresented as associated with the table when the logic actually relates to the connection.

Requirements

We should:

  • add a property to connection with the same name
  • deprecate this property on tables
  • point users to new reference

Justification

The query used is SELECT last_insert_id() which based on MySQL docs directly relates to the client connection (see reference below).

Additional Research and Context

@guzman-raphael guzman-raphael added enhancement awaiting-triage Issues awaiting proper priority/milestone assignment. labels Mar 10, 2021
@guzman-raphael guzman-raphael added this to the Backburner milestone Mar 24, 2021
@guzman-raphael guzman-raphael removed the awaiting-triage Issues awaiting proper priority/milestone assignment. label Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant