We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A clear and concise description of what the bug is.
Attempting to insert a decimal.Decimal results in this error:
decimal.Decimal
TypeError: Object of type Decimal is not JSON serializable"
Steps to reproduce the behavior, please provide code snippets or a repository:
from decimal import Decimal from supabase import create_async_client async def main() -> None: client = await create_async_client(...) await ( client .from_("test") .upsert({'percentage': Decimal(0.5)}) .execute() ) asyncio.run(main())
A clear and concise description of what you expected to happen.
The Decimal is inserted as is done by psycopg2.
psycopg2
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Describe the bug
A clear and concise description of what the bug is.
Attempting to insert a
decimal.Decimal
results in this error:To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A clear and concise description of what you expected to happen.
The Decimal is inserted as is done by
psycopg2
.Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: