From: Lele Gaifax Date: Thu, 15 May 2008 00:06:04 +0000 (+0000) Subject: Augment expression.Delete() with a kwargs, like Insert() and Update() X-Git-Tag: rel_0_5beta1~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0905bb4ba6e19e72ade71fbb926fc8490568ca0f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Augment expression.Delete() with a kwargs, like Insert() and Update() --- diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index f97bd0cf37..6eabd81537 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -3420,14 +3420,16 @@ class Update(_ValuesBase): class Delete(_UpdateBase): - def __init__(self, table, whereclause, bind=None): + def __init__(self, table, whereclause, bind=None, **kwargs): self._bind = bind self.table = table if whereclause: self._whereclause = _literal_as_text(whereclause) else: self._whereclause = None - + + self.kwargs = kwargs + def get_children(self, **kwargs): if self._whereclause is not None: return self._whereclause,