summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/functions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-12-29 18:17:36 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2015-12-29 18:17:36 -0500
commitb4df64d0053be9c5dca9ebe3e9d6fee18edeb8fa (patch)
treef2906120508310345a5fbcbe81fe1dada2506587 /lib/sqlalchemy/sql/functions.py
parent2a0d8289d62506fcfe71e9b20bfae29378003041 (diff)
downloadsqlalchemy-b4df64d0053be9c5dca9ebe3e9d6fee18edeb8fa.tar.gz
- almost finished the arch for the PG side still working on hstore
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r--lib/sqlalchemy/sql/functions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py
index 6cfbd12b3..6a8bb64c2 100644
--- a/lib/sqlalchemy/sql/functions.py
+++ b/lib/sqlalchemy/sql/functions.py
@@ -265,7 +265,8 @@ class FunctionElement(Executable, ColumnElement, FromClause):
# expressions against getitem. This may need to be made
# more portable if in the future we support other DBs
# besides postgresql.
- if against is operators.getitem:
+ if against is operators.getitem and \
+ isinstance(self.type, sqltypes.Array):
return Grouping(self)
else:
return super(FunctionElement, self).self_group(against=against)