Skip to content

Commit

Permalink
Calling mysql LAST_INSERT_ID(expr) function (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchertkov committed Apr 14, 2021
1 parent 28c7acf commit a29c34d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/engine/dolphin/stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -1795,6 +1795,15 @@ func defaultSchema(name string) *catalog.Schema {
Args: []*catalog.Argument{},
ReturnType: &ast.TypeName{Name: "bigint"},
},
{
Name: "LAST_INSERT_ID",
Args: []*catalog.Argument{
{
Type: &ast.TypeName{Name: "any"},
},
},
ReturnType: &ast.TypeName{Name: "bigint"},
},
{
Name: "LAST_VALUE",
Args: []*catalog.Argument{
Expand Down

0 comments on commit a29c34d

Please sign in to comment.