从无法访问的项目Fork
* #15812 allow continuing fetching after cancelling, if data in ResultSet isn't dirty #15812 allow continuing fetching after cancelling, if data in ResultSet isn't dirty * #15812 migrate flags to state machine * #15812 remove IN_DIALOG status * #15812 replace with one flag