| 4863 | |
| 4864 | |
| 4865 | bool Item_func_json_objectagg::add() |
| 4866 | { |
| 4867 | StringBuffer<MAX_FIELD_WIDTH> buf; |
| 4868 | String *key; |
| 4869 | |
| 4870 | key= args[0]->val_str(&buf); |
| 4871 | if (args[0]->is_null()) |
| 4872 | return 0; |
| 4873 | |
| 4874 | null_value= 0; |
| 4875 | if (result.length() > 1) |
| 4876 | result.append(STRING_WITH_LEN(", ")); |
| 4877 | |
| 4878 | result.append('"'); |
| 4879 | st_append_escaped(&result,key); |
| 4880 | result.append(STRING_WITH_LEN("\":")); |
| 4881 | |
| 4882 | buf.length(0); |
| 4883 | append_json_value(&result, args[1], &buf); |
| 4884 | |
| 4885 | return 0; |
| 4886 | } |
| 4887 | |
| 4888 | |
| 4889 | String* Item_func_json_objectagg::val_str(String* str) |
nothing calls this directly
no test coverage detected