Skip to content

Commit

Permalink
Merge pull request #46 from sixapart/skip-escape-test-edge-case
Browse files Browse the repository at this point in the history
skip edge case test for sqlite
  • Loading branch information
jamadam authored Oct 25, 2024
2 parents 2c39859 + 36ffb9b commit 3dc5ab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/61-escape.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ subtest 'self escape' => sub {

subtest 'use wildcard charactor as escapr_char' => sub {
plan skip_all => 'MariaDB does not support it' if Foo->driver->dbh->{Driver}->{Name} eq 'MariaDB';
plan skip_all => 'SQLite does not support it' if Foo->driver->dbh->{Driver}->{Name} eq 'SQLite'; # fails with DBD::SQLite@1.44 and older
my @got = Foo->search({ text => { op => 'LIKE', value => '100_%', escape => '_' } });
is scalar(@got), 1, 'right number';
is $got[0]->name, 'percent', 'right name';
Expand Down

0 comments on commit 3dc5ab2

Please sign in to comment.