ParseDArrayFromString parses the string-form of constructing arrays, handling cases such as `'{1,2,3}'::INT[]`. The input type t is the type of the parameter of the array to parse.
(ctx ParseTimeContext, s string, t *types.T)
| 147 | // cases such as `'{1,2,3}'::INT[]`. The input type t is the type of the |
| 148 | // parameter of the array to parse. |
| 149 | func ParseDArrayFromString(ctx ParseTimeContext, s string, t *types.T) (*DArray, error) { |
| 150 | ret, err := doParseDArrayFromString(ctx, s, t) |
| 151 | if err != nil { |
| 152 | return ret, makeParseError(s, types.MakeArray(t), err) |
| 153 | } |
| 154 | return ret, nil |
| 155 | } |
| 156 | |
| 157 | // doParseDArraryFromString does most of the work of ParseDArrayFromString, |
| 158 | // except the error it returns isn't prettified as a parsing error. |
no test coverage detected
searching dependent graphs…