summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-11-10 03:02:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-11-10 03:02:16 +0000
commitea46e556f9f691735bc14885648a92e8cf7177d5 (patch)
tree9ddbdbe33b110b0ae6cdb0d289f48ae6801b402e /lib/sqlalchemy/databases/postgres.py
parent681c8fc51c92c5998642fcef0ec9e9b079ccf1f5 (diff)
downloadsqlalchemy-ea46e556f9f691735bc14885648a92e8cf7177d5.tar.gz
- anonymous column expressions are automatically labeled.
e.g. select([x* 5]) produces "SELECT x * 5 AS anon_1". This allows the labelname to be present in the cursor.description which can then be appropriately matched to result-column processing rules. (we can't reliably use positional tracking for result-column matches since text() expressions may represent multiple columns). - operator overloading is now controlled by TypeEngine objects - the one built-in operator overload so far is String types overloading '+' to be the string concatenation operator. User-defined types can also define their own operator overloading by overriding the adapt_operator(self, op) method. - untyped bind parameters on the right side of a binary expression will be assigned the type of the left side of the operation, to better enable the appropriate bind parameter processing to take effect [ticket:819]
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r--lib/sqlalchemy/databases/postgres.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index 00b297f97..88ac0e202 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -109,7 +109,7 @@ class PGBoolean(sqltypes.Boolean):
def get_col_spec(self):
return "BOOLEAN"
-class PGArray(sqltypes.TypeEngine, sqltypes.Concatenable):
+class PGArray(sqltypes.Concatenable, sqltypes.TypeEngine):
def __init__(self, item_type):
if isinstance(item_type, type):
item_type = item_type()