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

Any driver will fail to get decimal column value from postgres database, the same for date and timestamp column type . #3521

Open
swfdoudou opened this issue Sep 25, 2024 · 2 comments
Labels

Comments

@swfdoudou
Copy link

Bug Description

When i get decimal column value from postgres by Any driver, the library panic :
Any driver does not support the Postgres type PgTypeInfo(Numeric)
the samilar error for the timestamp and date column type , it's :
Any driver does not support the Postgres type PgTypeInfo(Timestamptz)

Info

  • SQLx version: [REQUIRED]
    0.8.2
  • SQLx features enabled: [REQUIRED]
    "runtime-tokio-rustls","any", "postgres", "mysql", "sqlite", "macros","chrono"
  • Database server and version: [REQUIRED] (MySQL / Postgres / SQLite <x.y.z>)
    Postgres
  • Operating system: [REQUIRED]
    win10
  • rustc --version:
    1.74.0
@swfdoudou swfdoudou added the bug label Sep 25, 2024
@CommanderStorm
Copy link
Contributor

You created both this issue and a discussion #3520

@swfdoudou
Copy link
Author

JDBC(java) and ODBC(c、C++) also is database agnostic, but they all support the decimal and Date(datetime) types.
Decimal and Date(datetime) types are so commonly used in databases and application , hope to add support to them.

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

No branches or pull requests

2 participants