[Bast-commits] r9450 - DBIx-Class/0.08/trunk/lib/DBIx/Class
jester at dev.catalyst.perl.org
jester at dev.catalyst.perl.org
Thu May 27 14:06:43 GMT 2010
Author: jester
Date: 2010-05-27 15:06:43 +0100 (Thu, 27 May 2010)
New Revision: 9450
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
Log:
Light doc tweaks
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm 2010-05-27 08:17:35 UTC (rev 9449)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm 2010-05-27 14:06:43 UTC (rev 9450)
@@ -57,8 +57,13 @@
The query that the ResultSet represents is B<only> executed against
the database when these methods are called:
-L</find> L</next> L</all> L</first> L</single> L</count>
+L</find>, L</next>, L</all>, L</first>, L</single>, L</count>.
+If a resultset is used in a numeric context it returns the L</count>.
+However, if it is used in a boolean context it is B<always> true. So if
+you want to check if a resultset has any results, you must use C<if $rs
+!= 0>.
+
=head1 EXAMPLES
=head2 Chaining resultsets
@@ -101,7 +106,7 @@
L</join>, L</prefetch>, L</+select>, L</+as> attributes are merged
into the existing ones from the original resultset.
-The L</where>, L</having> attribute, and any search conditions are
+The L</where> and L</having> attributes, and any search conditions, are
merged with an SQL C<AND> to the existing condition from the original
resultset.
@@ -142,13 +147,6 @@
See: L</search>, L</count>, L</get_column>, L</all>, L</create>.
-=head1 OVERLOADING
-
-If a resultset is used in a numeric context it returns the L</count>.
-However, if it is used in a boolean context it is always true. So if
-you want to check if a resultset has any results use C<if $rs != 0>.
-C<if $rs> will always be true.
-
=head1 METHODS
=head2 new
More information about the Bast-commits
mailing list