Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 432 | |
| 433 | // Format implements the NodeFormatter interface. |
| 434 | func (expr *StrVal) Format(ctx *FmtCtx) { |
| 435 | buf, f := &ctx.Buffer, ctx.flags |
| 436 | if expr.scannedAsBytes { |
| 437 | lex.EncodeSQLBytes(buf, expr.s) |
| 438 | } else { |
| 439 | lex.EncodeSQLStringWithFlags(buf, expr.s, f.EncodeFlags()) |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | var ( |
| 444 | // StrValAvailAllParsable is the set of parsable string types. |
nothing calls this directly
no test coverage detected