Skip to content

ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction error #4

@bensheldon

Description

@bensheldon

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>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions