summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-07-15 13:07:32 -0400
committerStefan Urbanek <stefan@agentfarms.net>2015-08-25 23:56:04 -0700
commit984517d48a6f9723dc9f56791f6cb7f90cdba8b0 (patch)
tree22a8002bb00af86d5af36c133f1e539385a973a2
parenta507dc7973e9954245dbfcab3690de770c724222 (diff)
downloadsqlalchemy-984517d48a6f9723dc9f56791f6cb7f90cdba8b0.tar.gz
- add a note, references #3487
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 22c66dbbb..dc7987d74 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -883,6 +883,16 @@ class ARRAY(sqltypes.Concatenable, sqltypes.TypeEngine):
mytable.c.data[2:7]: [1, 2, 3]
})
+ .. note::
+
+ Multi-dimensional support for the ``[]`` operator is not supported
+ in SQLAlchemy 1.0. Please use the :func:`.type_coerce` function
+ to cast an intermediary expression to ARRAY again as a workaround::
+
+ expr = type_coerce(my_array_column[5], ARRAY(Integer))[6]
+
+ Multi-dimensional support will be provided in a future release.
+
:class:`.ARRAY` provides special methods for containment operations,
e.g.::