id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10191	integer = boolean	anonymous	doki_pen	While trying to configure the AnnouncerPlugin, I get the following:\r\n\r\n{{{\r\nTrac detected an internal error:\r\n\r\nProgrammingError: operator does not exist: integer = boolean\r\nLINE 6:                  AND authenticated=true\r\n                                          ^\r\nHINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.\r\n}}}\r\n\r\n{{{\r\nMost recent call last:\r\n\r\nFile "/usr/local/lib/python2.7/site-packages/Trac-0.12.3-py2.7.egg/trac/web/main.py", line 522, in _dispatch_request\r\n  dispatcher.dispatch(req)\r\nFile "/usr/local/lib/python2.7/site-packages/Trac-0.12.3-py2.7.egg/trac/web/main.py", line 243, in dispatch\r\n  resp = chosen_handler.process_request(req)\r\nFile "/usr/local/lib/python2.7/site-packages/Trac-0.12.3-py2.7.egg/trac/prefs/web_ui.py", line 77, in process_request\r\n  template, data = chosen_provider.render_preference_panel(req, panel_id)\r\nFile "/usr/local/lib/python2.7/site-packages/TracAnnouncer-0.12.1dev-py2.7.egg/announcer/pref.py", line 170, in render_preference_panel\r\n  req.session.sid, req.session.authenticated, j):\r\nFile "/usr/local/lib/python2.7/site-packages/TracAnnouncer-0.12.1dev-py2.7.egg/announcer/model.py", line 147, in find_by_sid_and_distributor\r\n  @env.with_transaction(db)\r\nFile "/usr/local/lib/python2.7/site-packages/Trac-0.12.3-py2.7.egg/trac/db/api.py", line 77, in transaction_wrapper\r\n  fn(ldb)\r\nFile "/usr/local/lib/python2.7/site-packages/TracAnnouncer-0.12.1dev-py2.7.egg/announcer/model.py", line 158, in do_select\r\n  """, (sid,authenticated,distributor))\r\nFile "/usr/local/lib/python2.7/site-packages/Trac-0.12.3-py2.7.egg/trac/db/util.py", line 65, in execute\r\n  return self.cursor.execute(sql_escape_percent(sql), args)\r\n}}}\r\n\r\n\r\n'''System Information:'''\r\n{{{\r\nUser Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1\r\nTrac _0.12.3\r\nTrac _0.12.3\r\nBabel _0.9.6\r\nDocutils _0.8.1\r\nGenshi _0.6\r\nGIT _1.7.7\r\npsycopg2 _2.4.2\r\nPygments _1.5\r\nPython _2.7.2 (default, Aug 19 2011, 20:41:43) [GCC]\r\nPython _2.7.2 (default, Aug 19 2011, 20:41:43) [GCC]\r\npytz _2012b\r\npytz _2012b\r\nsetuptools _0.6\r\nsetuptools _0.6\r\nSubversion _1.6.18 (!r1303927)\r\njQuery_1.4.4\r\n}}}\r\n\r\n'''Enabled Plugins:'''\r\n{{{\r\nTracAnnouncer _0.12.1dev _/usr/local/lib/python2.7/site-packages/!TracAnnouncer-0.12.1dev-py2.7.egg\r\nTracGit _0.12.0.5dev _/usr/local/lib/python2.7/site-packages/!TracGit-0.12.0.5dev-py2.7.egg\r\n}}}\r\n\r\nOriginally, I enabled most of the plugin's options, and got this error on all but the admin and view tickets tabs; !WatchSubscriber caused this when added to the mix.  With only the !AllTicketsSubscriber subscriber selected, I everything works except for the subscripts tab under the user's preferences.\r\n\r\nI found another mention of this error, ticket:8065, but didn't grok its resolution, and would have assumed that the 0.12dev version from this morning (revision 11799) would contain any related fix.\r\n\r\nThere seems to be a disconnect between the way the query is being submitted, boolean, vice what the (postgres) database schema expects, integer.	defect	closed	normal	AnnouncerPlugin	normal	duplicate		scottso@sonalysts.com	0.12
