MCPcopy Create free account
hub / github.com/MariaDB/server / read_json

Method read_json

sql/item_jsonfunc.cc:999–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997
998
999String *Item_func_json_unquote::read_json(json_engine_t *je)
1000{
1001 String *js= args[0]->val_json(&tmp_s);
1002
1003 if ((null_value= args[0]->null_value))
1004 return 0;
1005
1006 json_scan_start(je, js->charset(),(const uchar *) js->ptr(),
1007 (const uchar *) js->ptr() + js->length());
1008
1009 if (json_read_value(je))
1010 goto error;
1011
1012 return js;
1013
1014error:
1015 if (je->value_type == JSON_VALUE_STRING)
1016 report_json_error(js, je, 0);
1017 return js;
1018}
1019
1020
1021String *Item_func_json_unquote::val_str(String *str)

Callers 1

Calls 15

json_scan_startFunction · 0.85
json_read_valueFunction · 0.85
json_path_setupFunction · 0.85
json_get_path_startFunction · 0.85
json_get_path_nextFunction · 0.85
path_exactFunction · 0.85
json_scan_nextFunction · 0.85
json_niceFunction · 0.85
val_jsonMethod · 0.45
charsetMethod · 0.45

Tested by

no test coverage detected