| 669 | } |
| 670 | |
| 671 | void 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 | |
| 688 | void OGRAPISpy_DS_ReleaseResultSet(GDALDatasetH hDS, OGRLayerH hLayer) |
| 689 | { |
no test coverage detected