create statement handle from database connection */
| 558 | |
| 559 | /* create statement handle from database connection */ |
| 560 | static 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 | |
| 577 | static int msOCISetDataHandlers(msOracleSpatialHandler *hand, msOracleSpatialDataHandler *dthand) |
| 578 | { |
no outgoing calls
no test coverage detected