X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Fsqlmaker%2Flimit_dialects%2Frno.t;h=4b96a65d262c5397edac6e99a49b7eeb18fcce4d;hp=dc598c09c194a97b8c45cbf7c53afbeed242daea;hb=d763268755f6b9ee1d0d4d8442d989ef7c5a4d7d;hpb=a6646e1b0a25acfd21cc3e32b8c479dd0f3526ef diff --git a/t/sqlmaker/limit_dialects/rno.t b/t/sqlmaker/limit_dialects/rno.t index dc598c0..4b96a65 100644 --- a/t/sqlmaker/limit_dialects/rno.t +++ b/t/sqlmaker/limit_dialects/rno.t @@ -71,4 +71,20 @@ is_same_sql_bind( [ [ 'source', 'Library' ] ], ); +{ + my $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;