I have been getting the following exception lately using the postgresql adapter. It seems to be related to Transactions, since it mentions BEGIN. I had a model named Transaction, which I thought might be causing the problem, so I renamed it to Transact. But I still get the error. Something is generating ‘EXPLAIN BEGIN’ as the entirety of the SQL statement.
The rails statement that is running is a dynamic finder:
if v = Violation.find_by_issuer_id_and_filer_id(issuer.id, filer.id)
v << filing
Anyone seen this? Any ideas?