From fc92d14bbe3077ff94df108bf53ec77e0da83dd8 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 23 Jan 2010 19:44:06 +0000 Subject: - types.Binary is renamed to types.LargeBinary, it only produces BLOB, BYTEA, or a similar "long binary" type. New base BINARY and VARBINARY types have been added to access these MySQL/MS-SQL specific types in an agnostic way [ticket:1664]. --- lib/sqlalchemy/dialects/postgresql/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/dialects/postgresql') diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index bc5459f3a..cfbef69e8 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -83,7 +83,7 @@ from sqlalchemy.types import INTEGER, BIGINT, SMALLINT, VARCHAR, \ class REAL(sqltypes.Float): __visit_name__ = "REAL" -class BYTEA(sqltypes.Binary): +class BYTEA(sqltypes.LargeBinary): __visit_name__ = 'BYTEA' class DOUBLE_PRECISION(sqltypes.Float): @@ -476,7 +476,7 @@ class PGTypeCompiler(compiler.GenericTypeCompiler): def visit_UUID(self, type_): return "UUID" - def visit_binary(self, type_): + def visit_large_binary(self, type_): return self.visit_BYTEA(type_) def visit_BYTEA(self, type_): -- cgit v1.2.1