]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
outerjoin onclause is optional
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Jan 2006 05:04:42 +0000 (05:04 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Jan 2006 05:04:42 +0000 (05:04 +0000)
lib/sqlalchemy/sql.py

index c60f7526834f9812625083ce52af7cce63d912e1..486fa304ea379eaa23f4ad72f2da0d919fa1fd6d 100644 (file)
@@ -28,7 +28,7 @@ def asc(column):
     """
     return CompoundClause(None, column, "ASC")
 
-def outerjoin(left, right, onclause, **kwargs):
+def outerjoin(left, right, onclause=None, **kwargs):
     """returns an OUTER JOIN clause element, given the left and right hand expressions,
     as well as the ON condition's expression.  To chain joins together, use the resulting
     Join object's "join()" or "outerjoin()" methods."""