use warnings;
use Test::More;
+use Test::Warn;
use lib qw(t/lib);
use DBICTest;
$s->storage->sql_maker_class ('DBICTest::SQLMaker::CustomDialect');
my $rs = $s->resultset ('CD');
-is_same_sql_bind (
+
+warnings_exist { is_same_sql_bind (
$rs->search ({}, { rows => 1, offset => 3,columns => [
{ id => 'foo.id' },
{ 'bar.id' => 'bar.id' },
)',
[],
'Rownum subsel aliasing works correctly'
-);
+ )}
+ qr/\Qthe legacy emulate_limit() mechanism inherited from SQL::Abstract::Limit has been deprecated/,
+ 'deprecation warning'
+;
done_testing;