Allow import SQL without delimiter till EOF.

For example, allow one line SQL without ; at end.

This again allows execution of SQL queries from query builder and auto-generated queries from query_result box without appending ;(semi-colon)

Partially fixes bug 4581.