Fix randomize for all array types, remove generic

* GenericArray can't work with generated code.
* Multi-dimensional arrays can't work because
  PSQL does not have a method to discover array
  depth.
This commit is contained in:
Patrick O'brien 2016-09-12 07:22:17 +10:00
parent e62dfe369f
commit 9bcaf51493
6 changed files with 89 additions and 534 deletions
bdb/drivers

View file

@ -367,12 +367,12 @@ func getArrayType(c bdb.Column) string {
return "types.BytesArray"
case "bit", "interval", "uuint", "bit varying", "character", "money", "character varying", "cidr", "inet", "macaddr", "text", "uuid", "xml":
return "types.StringArray"
case "bool":
case "boolean":
return "types.BoolArray"
case "decimal", "numeric", "double precision", "real":
return "types.Float64Array"
default:
return "types.GenericArray"
return "types.StringArray"
}
}