Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query List<Enum> data returns _Uint8ArrayView data type. #92

Open
queendevelopers opened this issue Jun 19, 2023 · 2 comments
Open

Query List<Enum> data returns _Uint8ArrayView data type. #92

queendevelopers opened this issue Jun 19, 2023 · 2 comments

Comments

@queendevelopers
Copy link

gender is defined as an enum in Postgres, which accepts multiple values that could have {male, female, other}

gender gender_enum[] DEFAULT '{female}',

I can see in the PgAdmin4 using a select query that displays gender as {male, female} value but when I use the select command in dart code it returns in _Uint8ArrayView format.

How can I solve this issue, please mention the best practices to deal with Enum list?
Thank's in advance.

@ivan-dubovenko-m10
Copy link

the same question for uuid[]

ids uuid[] NOT NULL DEFAULT array[]::uuid[], 

@isoos
Copy link
Owner

isoos commented Nov 2, 2023

@queendevelopers @ivan-dubovenko-m10: do you have any simple SELECT ... query that would help me to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants