When you triple-click on a word in a text document in a webbrowser, word processor etc., the whole paragraph is (usually) selected.
When you triple-click on a word in the highlighted SQL code in the top of the page, e.g. when browsing through result sets etc., not only the SQL is selected but also the string "SQL query:" that is contained in the <legend> of the fieldset that contains the highlighted SQL.
This trivial patch adds a DIV, so that only the SQL and not the legend is selected.
Note that in Firefox, triple-clicking does not span the <br>'s that are inserted in the hightligted SQL so it triple-clicking in Firefox still isn't that useful (this patch doesn't make this problem worse that it already is). In IE7 the whole SQL is selected, even when it spans multiple lines.
Patch
Logged In: YES
user_id=192186
Originator: NO
Merged in subversion, thanks.