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

Function msOCIOpenStatement

maporaclespatial.c:540–557  ·  view source on GitHub ↗

create statement handle from database connection */

Source from the content-addressed store, hash-verified

538
539/* create statement handle from database connection */
540static int msOCIOpenStatement( msOracleSpatialHandler *hand, msOracleSpatialStatement *sthand)
541{
542 int success = 0;
543
544 /* allocate stmthp */
545 success = TRY( hand, OCIHandleAlloc( (dvoid *)hand->envhp, (dvoid **)&sthand->stmthp, (ub4)OCI_HTYPE_STMT, (size_t)0, (dvoid **)0 ) );
546
547 sthand->rows_count = 0;
548 sthand->row_num = 0;
549 sthand->rows_fetched = 0;
550 sthand->row = 0;
551 sthand->items = NULL;
552 sthand->items_query = NULL;
553
554 //fprintf(stderr, "Creating statement handle at %p\n", sthand->stmthp);
555
556 return success;
557}
558
559/* create statement handle from database connection */
560static void msOCIFinishStatement( msOracleSpatialStatement *sthand )

Callers 1

msOracleSpatialLayerOpenFunction · 0.85

Calls 1

TRYFunction · 0.85

Tested by

no test coverage detected