sqldata/sqlmysqlapi.cpp
// Close the cursor and deallocate buffers
Close the cursor and deallocate buffers
Close the cursor and deallocate buffers
int SqlMysqlApi::CloseCursor()
{
	if(_cursor_result != NULL)
		_mysql_free_result(_cursor_result);
	_cursor_result = 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].ind;
	}
	delete [] _cursor_cols;
	_cursor_cols = NULL;
	_cursor_cols_count = 0;
	_cursor_allocated_rows = 0;
	return 0;
}
int SqlMysqlApi :: CloseCursor ( ) { if ( _cursor_result != NULL ) _mysql_free_result ( _cursor_result ) ; _cursor_result = 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 ] . ind ; } delete [ ] _cursor_cols ; _cursor_cols = NULL ; _cursor_cols_count = 0 ; _cursor_allocated_rows = 0 ; return 0 ; }
Close the cursor and deallocate buffers
Close the cursor and deallocate buffers
// Delete allocated buffers