Skip to content

Commit 6579d49

Browse files
committed
fix
1 parent 3c0c662 commit 6579d49

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/sql/plan/build_ddl.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4603,10 +4603,7 @@ func buildCreatePitr(stmt *tree.CreatePitr, ctx CompilerContext) (*Plan, error)
46034603
if !ctx.DatabaseExists(string(stmt.DatabaseName), nil) {
46044604
return nil, moerr.NewInternalError(ctx.GetContext(), "database "+string(stmt.DatabaseName)+" does not exist")
46054605
}
4606-
objRef, tableDef, err := ctx.Resolve(string(stmt.DatabaseName), string(stmt.TableName), nil)
4607-
if err != nil {
4608-
return nil, err
4609-
}
4606+
objRef, tableDef := ctx.Resolve(string(stmt.DatabaseName), string(stmt.TableName), nil)
46104607
if objRef == nil || tableDef == nil {
46114608
return nil, moerr.NewInternalError(ctx.GetContext(), "table "+string(stmt.DatabaseName)+"."+string(stmt.TableName)+" does not exist")
46124609
}

0 commit comments

Comments
 (0)