9 use DBIC::SqlMakerTest;
11 my $schema = DBICTest->init_schema();
13 my $sql_maker = $schema->storage->sql_maker;
15 # a loop so that the callsite line does not change
16 for my $expect_warn (1, 0) {
19 my ($sql, @bind) = $sql_maker->select ('foo', undef, { -nest => \ 'bar' } );
22 'SELECT * FROM foo WHERE ( bar )', [],
26 ($expect_warn ? qr/\Q-nest in search conditions is deprecated/ : []),
27 'Only one deprecation warning'