Skip to content

MySQL: LAST_INSERT_ID() returns 0 #165

Open
@Phantasimay

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions