PostgreSQL money values are not displayed when a query contains variables
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 47/100
研究方向
Start by locating sql_to_json from the log message and inspect how PostgreSQL money values are decoded, especially for the supplied query in the issue. Reproduce against PostgreSQL with SQLPage 0.36.0 and compare the displayed value with 0.35.1; done means the currency amount and symbol display correctly without the decode error.
由索引模型根據 Issue 內容生成。
描述
Introduction
After upgrading to SQLPage 0.36.0, money values from PostgreSQL now all show 0.0 as the value. This worked in version 0.35.0.
To Reproduce
With a PostgreSQL database configured, use the following SQL query:
select 'big_number' as component;
select 1.23::money as value,
'Value' as title,
'Money value' as description
;
Actual behavior
Value shows as 0.0
The following error is shown in the logs:
sqlpage::webserver::database::sql_to_json] Failed to decode f64 value: invalid float literal
Screenshots
Actual (0.36.0):
Expected (from 0.35.1):
Expected behavior
The value will be displayed correctly with the currency symbol (as per version 0.35.1)
Version information
- OS: macOS
- Database PostgreSQL
- SQLPage Version: 0.36.0
- 主要語言
- Rust
- 星號
- 2.6k
- 分支
- 175
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 43
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
sqlpage/SQLPage 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 65/100
sqlpage/SQLPage#1218 · 3 則留言 ·
維護者通常 1 天內回覆
-
There is no convenient way to reproduce issues可能已有人在做 @81reap 於 26 天前認領。 未關閉enhancement
sqlpage/SQLPage#1566 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Confusing sort interface可能已有人在做 @lovasoa 於 74 天前認領。 未關閉bug
難度 4/5 3-5 天 新手友好度 20/100
sqlpage/SQLPage#1442 · 3 則留言 ·
維護者通常 1 天內回覆
-
Mutation Testing Results :: Dead Code + Missing Tests可能重新可做 @81reap 於 61 天前認領,目前沒有進行中的 PR。 未關閉
sqlpage/SQLPage#1396 · 5 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
相似的 Issue
-
CI/CD ignore-for-release
難度 2/5 1-3 小時 新手友好度 70/100
eclipse-ankaios/ankaios#844 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
std: `SliceIndex<str>` missing for `std::ops` ranges, so generic `R: SliceIndex<str>` bounds fail未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 70/100
symposium-dev/symposium#530 ·
維護者通常 5 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆