MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[Bug] Built in MySQL function library query error, Object of type Decimal is not JSON serializable

Open daai-7642 opened this issue 8 months ago • 0 comments

Contact Information

[email protected]

MaxKB Version

maxkb-pro:v1.10.7-lts

Problem Description

Image

直接查询不包含金额字段是没有问题的,发现使用的默认的json包,因为 Python 的 json 模块默认不支持 Decimal 类型的序列化

Steps to Reproduce

查询带有金额的字段,即可复现

The expected correct result

正确返回不报错

Related log output


Additional Information

No response

daai-7642 avatar May 23 '25 08:05 daai-7642