Skip to content
New issue

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

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

Already on GitHub? # to your account

Erro no Postgres: integer out of range para entradas com números grandes #156

Closed
augusto-herrmann opened this issue Jan 22, 2025 · 0 comments · Fixed by #157
Closed

Erro no Postgres: integer out of range para entradas com números grandes #156

augusto-herrmann opened this issue Jan 22, 2025 · 0 comments · Fixed by #157
Labels
bug Something isn't working

Comments

@augusto-herrmann
Copy link
Member

Ao apresentar valores grandes para alguns campos do tipo integer, como por exemplo cod_unidade_lotacao do Participante, o Pydantic aceita, mas o banco rejeita, com o erro "integer out of range". Com isso, retorna erro 500. Esses casos devem ser tratados e retornar erro 422 e mensagem explicando o motivo da rejeição da entrada.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
1 participant