NewStrVal builds a new StrVal.
(in string)
| 2171 | |
| 2172 | // NewStrVal builds a new StrVal. |
| 2173 | func NewStrVal(in string) *SQLVal { |
| 2174 | return &SQLVal{Type: StrVal, Val: in} |
| 2175 | } |
| 2176 | |
| 2177 | // isFoldableValueCast reports whether a value-context string cast should be kept |
| 2178 | // (as a CastExpr) so normalize can fold it to match PostgreSQL's read-back. Only |
no outgoing calls
no test coverage detected