backport Ash's quoting fix from Loader to columns_info_for
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / Manual / Intro.pod
index 43e60cf..f5bf73d 100644 (file)
@@ -356,7 +356,7 @@ L<SQL::Abstract> construct to C<search>:
   my $rs = $schema->resultset('Album')->search({
     artist  => { '!=', 'Janis Joplin' },
     year    => { '<' => 1980 },
-    albumid => [ 1, 14, 15, 65, 43 ]
+    albumid => { '-in' => [ 1, 14, 15, 65, 43 ] }
   });
 
 This results in something like the following C<WHERE> clause: