Skip to content

Postgresql does not generate Array types correctly #29

Open
@tylerm007

Description

@tylerm007

from sqlalchemy.dialects.postgresql import ARRAY

bigint__ = Column('bigint[]', ARRAY(BigInteger(),as_tuple=True, dimensions=1))

This fixes the error but the Admin UI does not display the array (need to add as_tuple, dimensions)

curl http://localhost:5656/api/STRESSBIGINTARR
{
"attributes": {
"S_CheckSum": "1923218472011834499",
"check_sum": "",
"bigint__": [
65535
],
"description": "ARRAY[65535]"
},
"id": "11",
"links": {
"self": "/api/STRESSBIGINTARR/11/"
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions