dblint icon indicating copy to clipboard operation
dblint copied to clipboard

ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction error

Open bensheldon opened this issue 7 years ago • 1 comments
trafficstars

When adding dblint (v0.2.0) to my gemfile and then running specs I'm receiving this error for every test case. I'm using Rails v5.2.0. Let me know what other context I can help provide. Thanks!

  142) Click on destroy does not change shirt.all_clicks_count
       Failure/Error: return async_exec_without_profiling(*args,&blk) unless SqlPatches.should_measure?

       ActiveRecord::StatementInvalid:
         PG::InFailedSqlTransaction: ERROR:  current transaction is aborted, commands ignored until end of transaction block
         : SELECT c.relname FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = ANY (current_schemas(false)) AND c.relkind IN ('r')
       # -e:1:in `<main>'
       # ------------------
       # --- Caused by: ---
       # PG::InFailedSqlTransaction:
       #   ERROR:  current transaction is aborted, commands ignored until end of transaction block
       #   -e:1:in `<main>'

bensheldon avatar Sep 18 '18 16:09 bensheldon

@bensheldon Thanks for opening this issue!

I'm wondering if you're seeing some kind of conflict with another gem. Where does the unless SqlPatches.should_measure? come from?

lfittl avatar Sep 20 '18 06:09 lfittl