Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 489 | |
| 490 | // Format implements the NodeFormatter interface. |
| 491 | func (expr *StrVal) Format(ctx *FmtCtx) { |
| 492 | buf, f := &ctx.Buffer, ctx.flags |
| 493 | if expr.scannedAsBytes { |
| 494 | lexbase.EncodeSQLBytes(buf, expr.s) |
| 495 | } else { |
| 496 | lexbase.EncodeSQLStringWithFlags(buf, expr.s, f.EncodeFlags()) |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | var ( |
| 501 | // StrValAvailAllParsable is the set of parsable string types. |
nothing calls this directly
no test coverage detected