Skip to content

'GENERATED_KEY' stuck #32

@gigacoderr

Description

@gigacoderr

Hi, Andrew.

Thank you for your awesome job!

I've been stuck a little with generated keys using core "insert" function with MySQL, because 'GENERATED_KEY' should be specified instead of key column name.
I.e.

val (count, key) =
session.insert("insert blablabla", mapOf("field" to "value" ...)) {
it.long("GENERATED_KEY")
}

Can you add a small remark about this into documentation?
Thank you. Sorry for my English.

Metadata

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