sqldata/sqlociapi.cpp
// Close the cursor and deallocate buffers
Close the cursor and deallocate buffers
Close the cursor and deallocate buffers
int SqlOciApi::CloseCursor()
{
	if(_ociHandleFree == NULL)
		return -1;
	TRACE("OCI CloseCursor() Entered");
	int rc = _ociHandleFree(_stmtp_cursor, OCI_HTYPE_STMT);
	_stmtp_cursor = NULL;
	if(_cursor_cols == NULL)
		return 0;
	for(int i = 0; i < _cursor_cols_count; i++)
	{
		delete [] _cursor_cols[i]._data;
		delete [] _cursor_cols[i]._ind2;
		delete [] _cursor_cols[i]._len_ind2;
	}
	delete [] _cursor_cols;
	_cursor_cols = NULL;
	_cursor_cols_count = 0;
	_cursor_allocated_rows = 0;
	TRACE("OCI CloseCursor() Left");
	return rc;
}
int SqlOciApi :: CloseCursor ( ) { if ( _ociHandleFree == NULL ) return -1 ; TRACE ( " " ) ; int rc = _ociHandleFree ( _stmtp_cursor , OCI_HTYPE_STMT ) ; _stmtp_cursor = NULL ; if ( _cursor_cols == NULL ) return 0 ; for ( int i = 0 ; i < _cursor_cols_count ; i ++ ) { delete [ ] _cursor_cols [ i ] . _data ; delete [ ] _cursor_cols [ i ] . _ind2 ; delete [ ] _cursor_cols [ i ] . _len_ind2 ; } delete [ ] _cursor_cols ; _cursor_cols = NULL ; _cursor_cols_count = 0 ; _cursor_allocated_rows = 0 ; TRACE ( " " ) ; return rc ; }
Close the cursor and deallocate buffers
Close the cursor and deallocate buffers
// Close the statement handle // Delete allocated buffers