selectors.py
branchstable
changeset 6905 fe9fd048e64c
parent 6881 a473bf557456
child 6908 f07dc0e8948d
--- a/selectors.py	Thu Jan 27 13:40:01 2011 +0100
+++ b/selectors.py	Thu Jan 27 13:41:00 2011 +0100
@@ -551,6 +551,8 @@
     """Return 1 if the result set is of size 1, or greater but a specific row in
       the result set is specified ('row' argument).
     """
+    if rset is None and 'entity' in kwargs:
+        return 1
     if rset is not None and (row is not None or rset.rowcount == 1):
         return 1
     return 0