summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-08-11 18:48:59 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-08-11 18:48:59 +0000
commit549673753ac9a99e7ea33933b78222b2012571c0 (patch)
tree48cc1ef7f5a9871465b5d4c8ccf3c492ae2e5b58 /lib/sqlalchemy/sql.py
parent3d917a4a24c02939805eeeb99c4eed569cc4a7c7 (diff)
downloadsqlalchemy-549673753ac9a99e7ea33933b78222b2012571c0.tar.gz
added "nowait" flag to Select() [ticket:270]
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index 5d3c7692a..33250506c 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -1337,6 +1337,7 @@ class CompoundSelect(SelectBaseMixin, FromClause):
self.parens = kwargs.pop('parens', False)
self.correlate = kwargs.pop('correlate', False)
self.for_update = kwargs.pop('for_update', False)
+ self.nowait = kwargs.pop('nowait', False)
for s in self.selects:
s.group_by(None)
s.order_by(None)
@@ -1386,7 +1387,7 @@ class CompoundSelect(SelectBaseMixin, FromClause):
class Select(SelectBaseMixin, FromClause):
"""represents a SELECT statement, with appendable clauses, as well as
the ability to execute itself and return a result set."""
- def __init__(self, columns=None, whereclause = None, from_obj = [], order_by = None, group_by=None, having=None, use_labels = False, distinct=False, for_update=False, engine=None, limit=None, offset=None, scalar=False, correlate=True):
+ def __init__(self, columns=None, whereclause = None, from_obj = [], order_by = None, group_by=None, having=None, use_labels = False, distinct=False, for_update=False, nowait=False, engine=None, limit=None, offset=None, scalar=False, correlate=True):
SelectBaseMixin.__init__(self)
self._froms = util.OrderedDict()
self.use_labels = use_labels
@@ -1396,6 +1397,7 @@ class Select(SelectBaseMixin, FromClause):
self.limit = limit
self.offset = offset
self.for_update = for_update
+ self.nowait = nowait
# indicates that this select statement should not expand its columns
# into the column clause of an enclosing select, and should instead