Subqueries are done
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSet.pm
index 72af68e..1a9530e 100644 (file)
@@ -1711,11 +1711,21 @@ sub _remove_alias {
 
 =head2 as_query
 
+=over 4
+
+=item Arguments: none
+
+=item Return Value: \[ $sql, @bind ]
+
+=back
+
 Returns the SQL query and bind vars associated with the invocant.
 
+This is generally used as the RHS for a subquery.
+
 =cut
 
-sub as_query { return shift->cursor->as_query }
+sub as_query { return shift->cursor->as_query(@_) }
 
 =head2 find_or_new