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

'GENERATED_KEY' stuck #32

Open
gigacoderr opened this issue Dec 13, 2018 · 0 comments
Open

'GENERATED_KEY' stuck #32

gigacoderr opened this issue Dec 13, 2018 · 0 comments

Comments

@gigacoderr
Copy link

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.

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