create statement handle from database connection */
| 538 | |
| 539 | /* create statement handle from database connection */ |
| 540 | static 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 */ |
| 560 | static void msOCIFinishStatement( msOracleSpatialStatement *sthand ) |
no test coverage detected