summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 008398865..d1d881dc3 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1701,7 +1701,7 @@ class UUID(sqltypes.TypeEngine):
or as Python uuid objects.
The UUID type is currently known to work within the prominent DBAPI
- drivers supported by SQLAlchemy including psycopg2, pg8000 and
+ drivers supported by SQLAlchemy including psycopg, psycopg2, pg8000 and
asyncpg. Support for other DBAPI drivers may be incomplete or non-present.
"""
@@ -1992,6 +1992,12 @@ class ENUM(sqltypes.NativeForEmulated, sqltypes.Enum):
self.connection.execute(DropEnumType(enum))
+ def get_dbapi_type(self, dbapi):
+ """dont return dbapi.STRING for ENUM in PostgreSQL, since that's
+ a different type"""
+
+ return None
+
def _check_for_name_in_memos(self, checkfirst, kw):
"""Look in the 'ddl runner' for 'memos', then
note our name in that collection.