id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
3298	Bug when testing if environment needs upgrade	anderson@ultraserver.com.br	athomas	Hi,\r\n\r\nI detected an bug when the plug-in tests if the environment needs upgrade. It counts how much items there are on the table votes. But, at least on MySQL, if there is no records, it don´t returns nothing. So commented the line above and everything worked great. If don´t do it, the trac always says that the database needs an upgrade.\r\n\r\nJust one line commented on __init__.py:\r\n      def environment_needs_upgrade(self, db):\r\n        cursor = db.cursor()\r\n        try:\r\n            cursor.execute("SELECT COUNT(*) FROM votes")\r\n            #cursor.fetchone()\r\n            return False\r\n        except:\r\n            return True	defect	closed	high	VotePlugin	blocker	fixed		rjollos	0.11
