ArrayOf creates a type alias for an array of the given element type and fixed bounds.
(colType *types.T, bounds []int32)
| 359 | // ArrayOf creates a type alias for an array of the given element type and fixed |
| 360 | // bounds. |
| 361 | func arrayOf(colType *types.T, bounds []int32) (*types.T, error) { |
| 362 | if err := types.CheckArrayElementType(colType); err != nil { |
| 363 | return nil, err |
| 364 | } |
| 365 | |
| 366 | // Currently bounds are ignored. |
| 367 | return types.MakeArray(colType), nil |
| 368 | } |
| 369 | |
| 370 | // The SERIAL types are pseudo-types that are only used during parsing. After |
| 371 | // that, they should behave identically to INT columns. They are declared |
no test coverage detected
searching dependent graphs…