Skip to content

Commit a29c34d

Browse files
authored
Calling mysql LAST_INSERT_ID(expr) function (#977)
1 parent 28c7acf commit a29c34d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/engine/dolphin/stdlib.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,6 +1795,15 @@ func defaultSchema(name string) *catalog.Schema {
17951795
Args: []*catalog.Argument{},
17961796
ReturnType: &ast.TypeName{Name: "bigint"},
17971797
},
1798+
{
1799+
Name: "LAST_INSERT_ID",
1800+
Args: []*catalog.Argument{
1801+
{
1802+
Type: &ast.TypeName{Name: "any"},
1803+
},
1804+
},
1805+
ReturnType: &ast.TypeName{Name: "bigint"},
1806+
},
17981807
{
17991808
Name: "LAST_VALUE",
18001809
Args: []*catalog.Argument{

0 commit comments

Comments
 (0)