Skip to content

Conversation

dchertkov
Copy link
Contributor

Added support for the mysql function LAST_INSERT_ID with an expression.

Now this query leads to an error function last_insert_id(unknown) does not exist

INSERT INTO foo (id)
VALUES (LAST_INSERT_ID(UUID_SHORT()))

@kyleconroy kyleconroy merged commit a29c34d into sqlc-dev:master Apr 14, 2021
victoraugustolls pushed a commit to Streppel/sqlc that referenced this pull request May 6, 2021
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

Successfully merging this pull request may close these issues.

2 participants