) < 2
ORDER BY me.title
)',
- [ [ 'source', 'Library' ] ],
+ [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'source' }
+ => 'Library' ] ],
);
is_deeply (
) BETWEEN 1 AND 3
ORDER BY "title" DESC
)',
- [ [ 'source', 'Library' ] ],
+ [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'source' }
+ => 'Library' ] ],
);
is_deeply (
) BETWEEN 1 AND 4294967295
ORDER BY "title"
)',
- [ [ 'source', 'Library' ] ],
+ [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'source' }
+ => 'Library' ] ],
);
is_deeply (
'Correct columns selected with rows',
);
+{
+ $rs = $schema->resultset('Artist')->search({}, {
+ columns => 'name',
+ offset => 1,
+ order_by => 'name',
+ });
+ local $rs->result_source->{name} = "weird \n newline/multi \t \t space containing \n table";
+
+ like (
+ ${$rs->as_query}->[0],
+ qr| weird \s \n \s newline/multi \s \t \s \t \s space \s containing \s \n \s table|x,
+ 'Newlines/spaces preserved in final sql',
+ );
+}
+
done_testing;