Search code examples
perldbix-class

Fatal: Illegal use of top-level '-ident' at


I have two boolean columns and I want to generate query: WHERE f1 or f2

I try to do at DBIx::Class searching for f1 OR f2. I tried:

->search([{ -bool => 'f1' }, { -bool => 'f2' }])

But I get error: Fatal: Illegal use of top-level '-ident' at

What I do wrong?

DBIx::Class uses SQL::Abstract. But I still do not understand from the documentation how to write search correctly.

I use PostgreSQL as database

SQLA version is '2.000001' DBIx::Class v0.082841


Solution

  • Upgrading DBIx::Class from v0.082841 to v0.082842 Resolves problem

    https://metacpan.org/release/RIBASUSHI/DBIx-Class-0.082842/source/Changes#L28

    New version of DBIx::Class does not depend on SQL::Abstract any more