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. The dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local ti
( ctx ParseContext, s string, t *types.T, )
| 198 | // The dependsOnContext return value indicates if we had to consult the |
| 199 | // ParseContext (either for the time or the local timezone). |
| 200 | func ParseDArrayFromString( |
| 201 | ctx ParseContext, s string, t *types.T, |
| 202 | ) (_ *DArray, dependsOnContext bool, _ error) { |
| 203 | ret, dependsOnContext, err := doParseDArrayFromString(ctx, s, t) |
| 204 | if err != nil { |
| 205 | return ret, false, MakeParseError(s, types.MakeArray(t), err) |
| 206 | } |
| 207 | return ret, dependsOnContext, nil |
| 208 | } |
| 209 | |
| 210 | // doParseDArrayFromString does most of the work of ParseDArrayFromString, |
| 211 | // except the error it returns isn't prettified as a parsing error. |
no test coverage detected
searching dependent graphs…