The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;

package UR::DataSource::Pg::Operator::True;

sub generate_sql_for {
    my($class, $expr_sql, $val, $escape) = @_;

    my $sql = qq(( $expr_sql IS NOT NULL and ${expr_sql}::text != '0' and ${expr_sql}::text != ''  ));

    return ($sql);
}

1;