ResolvedType implements the TypedExpr interface.
()
| 3333 | |
| 3334 | // ResolvedType implements the TypedExpr interface. |
| 3335 | func (d *DArray) ResolvedType() *types.T { |
| 3336 | switch d.customOid { |
| 3337 | case oid.T_int2vector: |
| 3338 | return types.Int2Vector |
| 3339 | case oid.T_oidvector: |
| 3340 | return types.OidVector |
| 3341 | } |
| 3342 | return types.MakeArray(d.ParamTyp) |
| 3343 | } |
| 3344 | |
| 3345 | // FirstIndex returns the first index of the array. 1 for normal SQL arrays, |
| 3346 | // which are 1-indexed, and 0 for the special Postgers vector types which are |
no test coverage detected