 while not done do                           |
|     fetch continents_cursor into current_continent;        |
|     if done then                                           |
|       leave cursor_loop;                                   |
|     end if;                                                |
|     call analyze_continent_cities(current_continent);      |
|   end while;                                               |
|   close continents_cursor;                                 |
| end                   