is_same_sql_bind ($rs->as_query, $q{$s}{query}, "$s resultset unmodified (as_query matches)" );
}
+# ensure nothing pollutes the attrs of an existing rs
+{
+ my $fresh = $schema->resultset('CD');
+
+ isa_ok ($fresh->find(1), 'DBICTest::CD' );
+ isa_ok ($fresh->single({ cdid => 1}), 'DBICTest::CD' );
+ isa_ok ($fresh->search({ cdid => 1})->next, 'DBICTest::CD' );
+ is ($fresh->count({ cdid => 1}), 1 );
+ is ($fresh->count_rs({ cdid => 1})->next, 1 );
+
+ ok (! exists $fresh->{_attrs}{_sqlmaker_select_args}, 'select args did not leak through' );
+}
+
done_testing;