Augment expression.Delete() with a kwargs, like Insert() and Update()

This commit is contained in:
Lele Gaifax
2008-05-15 00:06:04 +00:00
parent c6e654db79
commit 0905bb4ba6
+4 -2
View File
@@ -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,