func (b *Block) String() string {
	p := sql.NewTreePrinter()
	_ = p.WriteNode("BLOCK")
	var children []string
	for _, s := range b.statements {
		children = append(children, s.String())
	}
	_ = p.WriteChildren(children...)
	return p.String()
}
String implements the sql.Node interface.
package plan
import (
	"io"
	"github.com/dolthub/go-mysql-server/sql"
)
type Block struct {
	statements []sql.Node
	rowIterSch sql.Schema  
}
var _ sql.Node = (*Block)(nil)
var _ sql.DebugStringer = (*Block)(nil)
func NewBlock(statements []sql.Node) *Block {
	return &Block{statements: statements}
}
func (b *Block) Resolved() bool {
	for _, s := range b.statements {
		if !s.Resolved() {
			return false
		}
	}
	return true
}