-------------------------------------------------------------------- */ msSDELayerCloseConnection */ -------------------------------------------------------------------- */ Virtual table function */ -------------------------------------------------------------------- */
| 1426 | /* Virtual table function */ |
| 1427 | /* -------------------------------------------------------------------- */ |
| 1428 | int 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 | /* -------------------------------------------------------------------- */ |
nothing calls this directly
no test coverage detected