(ctx *tree.FmtCtx)
| 1227 | } |
| 1228 | |
| 1229 | func (s *Open) Format(ctx *tree.FmtCtx) { |
| 1230 | ctx.WithAnnotations(s.Annotations, func() { |
| 1231 | ctx.WriteString("OPEN ") |
| 1232 | ctx.FormatNode(&s.CurVar) |
| 1233 | switch s.Scroll { |
| 1234 | case tree.Scroll: |
| 1235 | ctx.WriteString(" SCROLL") |
| 1236 | case tree.NoScroll: |
| 1237 | ctx.WriteString(" NO SCROLL") |
| 1238 | } |
| 1239 | if s.Query != nil { |
| 1240 | ctx.WriteString(" FOR ") |
| 1241 | ctx.FormatNode(s.Query) |
| 1242 | } |
| 1243 | ctx.WriteString(";\n") |
| 1244 | }) |
| 1245 | } |
| 1246 | |
| 1247 | func (s *Open) PlpgSQLStatementTag() string { |
| 1248 | return "stmt_open" |
nothing calls this directly
no test coverage detected