[Maria-developers] 5.5 merge: sql_select.cc