Bug #108606 | How to remove null property using JSON_OBJECT in mysql? | ||
---|---|---|---|
Submitted: | 25 Sep 2022 2:35 | Modified: | 26 Sep 2022 12:11 |
Reporter: | Dimpal Bindas | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: JSON | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[25 Sep 2022 2:35]
Dimpal Bindas
[26 Sep 2022 12:11]
MySQL Verification Team
Hi Mr. Bindas, Thank you for your bug report. However, this is not a bug. It is a responsibility of the schema and query creator / maintainer to make sure that NULLs do not creep into an JSON object. Hence, you can achieve it easily, for example, by creating a table with non-NULLable column types, for example, with auto-increment types. If you read our Reference Manual, you will easily conclude that the function that you are using is just aggregating the existing values. It can not replace them by its own volition. Not a bug.