MCPcopy Create free account
hub / github.com/MapServer/MapServer / msOCIFinishStatement

Function msOCIFinishStatement

maporaclespatial.c:560–575  ·  view source on GitHub ↗

create statement handle from database connection */

Source from the content-addressed store, hash-verified

558
559/* create statement handle from database connection */
560static void msOCIFinishStatement( msOracleSpatialStatement *sthand )
561{
562 if(sthand != NULL)
563 {
564 //fprintf(stderr, "Freeing statement handle at %p\n", sthand->stmthp);
565
566 if (sthand->stmthp != NULL)
567 OCIHandleFree( (dvoid *)sthand->stmthp, (ub4)OCI_HTYPE_STMT );
568 if (sthand->items != NULL)
569 free( sthand->items );
570 if (sthand->items_query != NULL)
571 free( sthand->items_query );
572 memset(sthand, 0, sizeof( msOracleSpatialStatement ) );
573 free(sthand);
574 }
575}
576
577static int msOCISetDataHandlers(msOracleSpatialHandler *hand, msOracleSpatialDataHandler *dthand)
578{

Callers 2

msOracleSpatialLayerOpenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected