(src string)
| 584 | } |
| 585 | |
| 586 | func quoteCompositeFieldIfNeeded(src string) string { |
| 587 | if src == "" || src[0] == ' ' || src[len(src)-1] == ' ' || strings.ContainsAny(src, `(),"\`) { |
| 588 | return quoteCompositeField(src) |
| 589 | } |
| 590 | return src |
| 591 | } |
| 592 | |
| 593 | // CompositeFields represents the values of a composite value. It can be used as an encoding source or as a scan target. |
| 594 | // It cannot scan a NULL, but the composite fields can be NULL. |
no test coverage detected