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

不支持bigint 值比较 #25

Open
tx991020 opened this issue Aug 4, 2020 · 1 comment
Open

不支持bigint 值比较 #25

tx991020 opened this issue Aug 4, 2020 · 1 comment
Labels

Comments

@tx991020
Copy link

tx991020 commented Aug 4, 2020

bigint 自动转成字符串了, 拿进去查询,查出来的结果是错的

@cch123
Copy link
Owner

cch123 commented Aug 21, 2020

@tx991020 ,这个应该本质是因为 json 的原因吧,下面这段是从 json 的 RFC 里摘出来的

This specification allows implementations to set limits on the range
and precision of numbers accepted. Since software that implements
IEEE 754-2008 binary64 (double precision) numbers [IEEE754] is
generally available and widely used, good interoperability can be
achieved by implementations that expect no more precision or range
than these provide, in the sense that implementations will
approximate JSON numbers within the expected precision. A JSON
number such as 1E400 or 3.141592653589793238462643383279 may indicate
potential interoperability problems, since it suggests that the
software that created it expects receiving software to have greater
capabilities for numeric magnitude and precision than is widely
available.

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