use strict;
use warnings;

use Test::More;
use lib qw(t/lib);
use DBICTest;

my $schema = DBICTest->init_schema;

BEGIN {
    eval "use DBD::SQLite";
    plan $@
        ? ( skip_all => 'needs DBD::SQLite for testing' )
        : ( tests => 1 );
}

$schema->storage->debug(1);

my $rs = $schema->resultset('Artist')->search({ artistid => 1 },
    {
        where => \'name like ?',
        bind  => [ 'Cat%' ],
    }
);

is ( $rs->count, 1, 'bind order' );
