diff options
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
-rw-r--r-- | lib/sqlalchemy/ansisql.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index e269e7efd..0d93ea518 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -148,7 +148,7 @@ class ANSICompiler(sql.Compiled): else: collist = string.join([c.fullname for c in inner_columns], ', ') - text = "SELECT " + collist + " FROM " + text = "SELECT " + collist + " \nFROM " whereclause = select.whereclause @@ -171,7 +171,7 @@ class ANSICompiler(sql.Compiled): if whereclause is not None: t = self.get_str(whereclause) if t: - text += " WHERE " + t + text += " \nWHERE " + t for tup in select._clauses: text += " " + tup[0] + " " + self.get_str(tup[1]) |