Cleanup the sideeffects from most of the testcases with sideeffects.
Fixed bug in end space handle for WHERE text_column="constant"
The problem was that (for any storage engine), the created temporary table was not removed if CREATE SELECT failed (because of a constraint violation for example). This was not consistent with the manual and with CREATE SELECT (no TEMPORARY).