diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-03 23:00:04 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-03 23:00:04 +0000 |
| commit | bbd7c660560212844de3a92ba077bcec77740b16 (patch) | |
| tree | ea4636813813fb80b8f18d24ec931c8fa522b05e /lib/sqlalchemy/ansisql.py | |
| parent | ec6d7b39003f244b4acc7352f5973c910053e17f (diff) | |
| download | sqlalchemy-bbd7c660560212844de3a92ba077bcec77740b16.tar.gz | |
- Function objects know what to do in a FROM clause now. their
behavior should be the same, except now you can also do things like
select(['*'], from_obj=[func.my_function()]) to get multiple
columns from the result, or even use sql.column() constructs to name the
return columns [ticket:172]. generally only postgres understands the
syntax (and possibly oracle).
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
| -rw-r--r-- | lib/sqlalchemy/ansisql.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index a687fe705..6165192cd 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -239,8 +239,10 @@ class ANSICompiler(sql.Compiled): self.typemap.setdefault(func.name, func.type) if not self.apply_function_parens(func): self.strings[func] = ".".join(func.packagenames + [func.name]) + self.froms[func] = self.strings[func] else: self.strings[func] = ".".join(func.packagenames + [func.name]) + "(" + string.join([self.get_str(c) for c in func.clauses], ', ') + ")" + self.froms[func] = self.strings[func] def visit_compound_select(self, cs): text = string.join([self.get_str(c) for c in cs.selects], " " + cs.keyword + " ") |
