Skip to content

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

@daai-7642

Description

@daai-7642

Contact Information

764297968@qq.com

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions