MCPcopy Create free account
hub / github.com/OSGeo/gdal / OGRAPISpy_DS_ExecuteSQL

Function OGRAPISpy_DS_ExecuteSQL

ogr/ograpispy.cpp:671–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671void OGRAPISpy_DS_ExecuteSQL(GDALDatasetH hDS, const char *pszStatement,
672 OGRGeometryH hSpatialFilter,
673 const char *pszDialect, OGRLayerH hLayer)
674{
675 CPLMutexHolderD(&hOGRAPISpyMutex);
676 OGRAPISpyFlushDefered();
677 if (hLayer != nullptr)
678 fprintf(fpSpyFile,
679 "%s = ", OGRAPISpyGetAndRegisterLayerVar(hDS, hLayer).c_str());
680 fprintf(fpSpyFile, "%s.ExecuteSQL(%s, %s, %s)\n",
681 OGRAPISpyGetDSVar(hDS).c_str(),
682 OGRAPISpyGetString(pszStatement).c_str(),
683 OGRAPISpyGetGeom(hSpatialFilter).c_str(),
684 OGRAPISpyGetString(pszDialect).c_str());
685 OGRAPISpyFileClose();
686}
687
688void OGRAPISpy_DS_ReleaseResultSet(GDALDatasetH hDS, OGRLayerH hLayer)
689{

Callers 2

OGR_DS_ExecuteSQLFunction · 0.85
GDALDatasetExecuteSQLFunction · 0.85

Calls 7

OGRAPISpyFlushDeferedFunction · 0.85
OGRAPISpyGetDSVarFunction · 0.85
OGRAPISpyGetStringFunction · 0.85
OGRAPISpyGetGeomFunction · 0.85
OGRAPISpyFileCloseFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected