diff --git a/tools/goctl/model/sql/template/tpl/find-one.tpl b/tools/goctl/model/sql/template/tpl/find-one.tpl index a808558000b8..4f9319d1c341 100644 --- a/tools/goctl/model/sql/template/tpl/find-one.tpl +++ b/tools/goctl/model/sql/template/tpl/find-one.tpl @@ -18,7 +18,7 @@ func (m *default{{.upperStartCamelObject}}Model) FindOne(ctx context.Context, {{ switch err { case nil: return &resp, nil - case sqlc.ErrNotFound: + case sqlx.ErrNotFound: return nil, ErrNotFound default: return nil, err