1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
10 use DBICTest ':DiffSQL';
12 my $schema = DBICTest->init_schema();
14 my $sql_maker = $schema->storage->sql_maker;
16 # a loop so that the callsite line does not change
17 for my $expect_warn (1, 0) {
20 my ($sql, @bind) = $sql_maker->select ('foo', undef, { -nest => \ 'bar' } );
23 'SELECT * FROM foo WHERE ( bar )', [],
27 ($expect_warn ? qr/\Q-nest in search conditions is deprecated/ : []),
28 'Only one deprecation warning'