-
Notifications
You must be signed in to change notification settings - Fork 327
[doc]support to json function #2548
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
Conversation
|
||
| Parameter | Description | | ||
|-----------|-------------| | ||
| value | The value to be converted to JSONB type. Can be one of the types compatible with JSON mapping. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里得说清楚value的类型是啥?得有一个白名单。
另外,这里可能别用表格了,表格比如要列举的value的类型可能就不好写。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在下面
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
理论上这个函数不会直接返回一个 json 的null。
不过可以返回一个json的array,array里面有null。
null这个是参考pg的行为。
输入一个sql的null,返回的也是一个sql的null。
https://dbfiddle.uk/rY6jDsEA
Versions
Languages
Docs Checklist