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

Method LocateObject

storage/connect/jsonudf.cpp:934–955  ·  view source on GitHub ↗

/ Locate in a JSON Object. */ /

Source from the content-addressed store, hash-verified

932/* Locate in a JSON Object. */
933/*********************************************************************************/
934my_bool JSNX::LocateObject(PGLOBAL g, PJOB jobp)
935{
936 size_t m;
937
938 if (Jp->WriteChr('.'))
939 return true;
940
941 m = Jp->N;
942
943 for (PJPR pair = jobp->First; pair && !Found; pair = pair->Next) {
944 Jp->N = m;
945
946 if (Jp->WriteStr(pair->Key))
947 return true;
948
949 if (LocateValue(g, pair->Val))
950 return true;
951
952 } // endfor i
953
954 return false;
955} // end of LocateObject
956
957/*********************************************************************************/
958/* Locate a JSON Value. */

Callers

nothing calls this directly

Calls 2

WriteChrMethod · 0.80
WriteStrMethod · 0.80

Tested by

no test coverage detected