From: Alexander Hartmaier Date: Wed, 5 Mar 2014 17:43:48 +0000 (+0100) Subject: The initial (now passing) test for RT#93244 (fixed in 8d005ad9) X-Git-Tag: v0.082800~212 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8acda57c41ff1e2eda847e53b073217cb9035136;p=dbsrgits%2FDBIx-Class.git The initial (now passing) test for RT#93244 (fixed in 8d005ad9) --- diff --git a/t/sqlmaker/dbihacks_internals.t b/t/sqlmaker/dbihacks_internals.t index 7b4506d..f3d240f 100644 --- a/t/sqlmaker/dbihacks_internals.t +++ b/t/sqlmaker/dbihacks_internals.t @@ -134,6 +134,27 @@ for my $t ( sql => 'WHERE artistid IS NULL AND artistid != ? AND artistid IS NULL AND artistid = ? AND 0=1 AND charfield IS NULL AND 0=1 AND rank IS NULL', efcc_result => [qw( artistid )], }, + + # original test from RT#93244 + { + where => { + -and => [ + \[ + "LOWER(me.title) LIKE ?", + '%spoon%', + ], + [ { 'me.title' => 'Spoonful of bees' } ], + ]}, + cc_result => { + '' => \[ + "LOWER(me.title) LIKE ?", + '%spoon%', + ], + 'me.title' => 'Spoonful of bees', + }, + sql => 'WHERE LOWER(me.title) LIKE ? AND me.title = ?', + efcc_result => [qw( me.title )], + } ) { for my $w (