Skip to content

Commit

Permalink
feat(dolphin): Add NEXTVAL() to the MySQL catalog (sqlc-dev#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jille authored and lisitsky committed Jun 21, 2024
1 parent be8a4a8 commit d782e01
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 @@ -2388,6 +2388,15 @@ func defaultSchema(name string) *catalog.Schema {
Args: []*catalog.Argument{},
ReturnType: &ast.TypeName{Name: "datetime"},
},
{
Name: "NEXTVAL",
Args: []*catalog.Argument{
{
Type: &ast.TypeName{Name: "any"},
},
},
ReturnType: &ast.TypeName{Name: "int"},
},
{
Name: "NOW",
Args: []*catalog.Argument{
Expand Down

0 comments on commit d782e01

Please sign in to comment.