switch rno to DQ slice
Matt S Trout [Sat, 28 Jul 2012 16:52:27 +0000 (16:52 +0000)]
t/sqlmaker/limit_dialects/rno.t

index 32f67c5..73d8f34 100644 (file)
@@ -14,7 +14,12 @@ my ($TOTAL, $OFFSET) = (
 
 my $schema = DBICTest->init_schema;
 
-$schema->storage->_sql_maker->limit_dialect ('RowNumberOver');
+$schema->storage->_sql_maker->renderer_class(
+  Moo::Role->create_class_with_roles(qw(
+    Data::Query::Renderer::SQL::Naive
+    Data::Query::Renderer::SQL::Slice::RowNumberOver
+  ))
+);
 
 my $rs_selectas_col = $schema->resultset ('BooksInLibrary')->search ({}, {
   '+select' => ['owner.name'],