8 use DBICTest ':DiffSQL';
10 my $schema = DBICTest->init_schema();
12 my $sql_maker = $schema->storage->sql_maker;
14 # a loop so that the callsite line does not change
15 for my $expect_warn (1, 0) {
18 my ($sql, @bind) = $sql_maker->select ('foo', undef, { -nest => \ 'bar' } );
21 'SELECT * FROM foo WHERE ( bar )', [],
25 ($expect_warn ? qr/\Q-nest in search conditions is deprecated/ : []),
26 'Only one deprecation warning'