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:
parent
e62dfe369f
commit
9bcaf51493
6 changed files with 89 additions and 534 deletions
bdb/drivers
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue