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

MySQL: LAST_INSERT_ID() returns 0 #165

Open
Phantasimay opened this issue Apr 15, 2024 · 0 comments
Open

MySQL: LAST_INSERT_ID() returns 0 #165

Phantasimay opened this issue Apr 15, 2024 · 0 comments

Comments

@Phantasimay
Copy link

hi master, i love your plugin, its great, but i have problen with command LAST_INSERT_ID() in mysql it return 0, not what really last insert in my auto_increment id. i was search relate topic on this. As far as i know it because new connection id every query so LAST_INSERT_ID not recorded. could you give me guide to fix it or to set PersistentConnections true.
thanks.

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

No branches or pull requests

1 participant