MCPcopy Index your code
hub / github.com/MapServer/MapServer / msSDELayerCloseConnection

Function msSDELayerCloseConnection

mapsde.c:1428–1457  ·  view source on GitHub ↗

-------------------------------------------------------------------- */ msSDELayerCloseConnection */ -------------------------------------------------------------------- */ Virtual table function */ -------------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

1426/* Virtual table function */
1427/* -------------------------------------------------------------------- */
1428int msSDELayerCloseConnection(layerObj *layer)
1429{
1430
1431
1432#ifdef USE_SDE
1433
1434
1435 msSDELayerInfo *sde=NULL;
1436
1437 if(!msSDELayerIsOpen(layer)) {
1438 return MS_SUCCESS; /* already closed */
1439 }
1440
1441 sde = layer->layerinfo;
1442
1443 if(layer->debug)
1444 msDebug("msSDELayerCloseConnection(): Closing connection for layer %s.\n", layer->name);
1445
1446 msConnPoolRelease( layer, sde->connPoolInfo );
1447 sde->connPoolInfo = NULL;
1448 return (MS_SUCCESS);
1449#else
1450 msSetError( MS_MISCERR,
1451 "SDE support is not available.",
1452 "msSDELayerClose()");
1453 return MS_FAILURE;
1454#endif
1455
1456 return MS_SUCCESS;
1457}
1458
1459
1460/* -------------------------------------------------------------------- */

Callers

nothing calls this directly

Calls 4

msSDELayerIsOpenFunction · 0.85
msDebugFunction · 0.85
msConnPoolReleaseFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected