From 96191dde757462f82ec975d9c012857036a9cae0 Mon Sep 17 00:00:00 2001 From: Jacopo Notarstefano Date: Sun, 12 Mar 2017 09:40:54 +0100 Subject: [PATCH] Fix a DeprecationWarning by using LargeBinary instead of Binary --- sqlalchemy_utils/types/encrypted.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlalchemy_utils/types/encrypted.py b/sqlalchemy_utils/types/encrypted.py index 8ca0df7..7afa017 100644 --- a/sqlalchemy_utils/types/encrypted.py +++ b/sqlalchemy_utils/types/encrypted.py @@ -3,7 +3,7 @@ import base64 import datetime import six -from sqlalchemy.types import Binary, String, TypeDecorator +from sqlalchemy.types import LargeBinary, String, TypeDecorator from ..exceptions import ImproperlyConfigured from .scalar_coercible import ScalarCoercible @@ -199,7 +199,7 @@ class EncryptedType(TypeDecorator, ScalarCoercible): """ - impl = Binary + impl = LargeBinary def __init__(self, type_in=None, key=None, engine=None, **kwargs): """Initialization."""