fix: disable extra_float_digits startup param for PG16 compatibility

This commit is contained in:
asepharyana
2026-07-22 14:23:36 +07:00
parent 4cd04410cf
commit 891064354b
+2 -1
View File
@@ -62,7 +62,8 @@ impl Application {
.max_lifetime(std::time::Duration::from_secs(
CONFIG.db.max_lifetime_seconds,
))
.sqlx_logging(CONFIG.log_level == "debug");
.sqlx_logging(CONFIG.log_level == "debug")
.map_sqlx_postgres_opts(|opts| opts.extra_float_digits(None));
let db = Database::connect(opt)
.await