or just simply pasting and using SQL syntax highlighting (last 2 lines are missing in editor mode (actually they are hidden under lines 3&4 in editor mode, I had to drag my mouse across lines 3&4 to see them). If you ignore this, this problem is sorted as the posted version is formatted correctly.

The fact the editor doesn't work as expected and the "code" syntax highlighting is wrong, is already a known issue (raised within the first day after the forum was upgraded). The admin team have raised these issues with the software supplier and they will hopefully be fixed in the near future.