Closed doomedramen closed 11 years ago
PG::Error: ERROR: prepared statement "a1" already exists : INSERT INTO "versions" ("created_at", "event", "item_id", "item_type", "object", "object_changes", "whodunnit") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"
...
activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1202:in prepare' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1202:inprepare_statement' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1166:in exec_cache' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:661:inblock in exec_query' activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:280:in block in log' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
prepare' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1202:in
exec_cache' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:661:in
block in log' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in
Same when submitting /genomes/new
Setting prepared_statements : false fixes the issue for me short term, I am looking into incompatibility with my version of PG.
PG::Error: ERROR: prepared statement "a1" already exists : INSERT INTO "versions" ("created_at", "event", "item_id", "item_type", "object", "object_changes", "whodunnit") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"
...
activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1202:in
prepare' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1202:in
prepare_statement' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:1166:inexec_cache' activerecord (3.2.13) lib/active_record/connection_adapters/postgresql_adapter.rb:661:in
block in exec_query' activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:280:inblock in log' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'