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

Method SetJpath

storage/connect/jsonudf.cpp:97–114  ·  view source on GitHub ↗

/ SetJpath: set and parse the json path. */ /

Source from the content-addressed store, hash-verified

95/* SetJpath: set and parse the json path. */
96/*********************************************************************************/
97my_bool JSNX::SetJpath(PGLOBAL g, char *path, my_bool jb)
98{
99 // Check Value was allocated
100 if (!Value)
101 {
102 snprintf(g->Message, sizeof(g->Message), MSG(NO_MEMORY));
103 return true;
104 }
105
106 Value->SetNullable(true);
107 Jpath = path;
108
109 // Parse the json path
110 Parsed = false;
111 Nod = 0;
112 Jb = jb;
113 return ParseJpath(g);
114} // end of SetJpath
115
116/*********************************************************************************/
117/* Analyse array processing options. */

Callers 9

CheckPathFunction · 0.45
json_get_itemFunction · 0.45
jsonget_stringFunction · 0.45
jsonget_intFunction · 0.45
jsonget_realFunction · 0.45
jsoncontains_pathFunction · 0.45
handle_itemFunction · 0.45
jbin_get_itemFunction · 0.45
bin_handle_itemFunction · 0.45

Calls 1

SetNullableMethod · 0.45

Tested by

no test coverage detected