summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Theodorou <dimitris.theodorou@gmail.com>2015-01-12 04:16:14 +0100
committerDimitris Theodorou <dimitris.theodorou@gmail.com>2015-01-12 04:16:14 +0100
commita9c10cb7a21dd87c51c9abd886331175d0c10418 (patch)
tree8ec78f63c2697e4a5661fa41ad555f2422f2f34e
parent214228a9dd0fa307fc9d0ebfd6a52390cd63f6f7 (diff)
downloadalembic-a9c10cb7a21dd87c51c9abd886331175d0c10418.tar.gz
remove redundant Float type check
-rw-r--r--alembic/ddl/postgresql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alembic/ddl/postgresql.py b/alembic/ddl/postgresql.py
index 4c6e9d7..ac3a5f4 100644
--- a/alembic/ddl/postgresql.py
+++ b/alembic/ddl/postgresql.py
@@ -4,7 +4,7 @@ from .. import compat
from .base import compiles, alter_table, format_table_name, RenameTable
from .impl import DefaultImpl
from sqlalchemy.dialects.postgresql import INTEGER, BIGINT
-from sqlalchemy import text, Float, Numeric
+from sqlalchemy import text, Numeric
import logging
log = logging.getLogger(__name__)
@@ -36,7 +36,7 @@ class PostgresqlImpl(DefaultImpl):
isinstance(metadata_column.server_default.arg,
compat.string_types) and \
not re.match(r"^'.+'$", rendered_metadata_default) and \
- not isinstance(inspector_column.type, (Float, Numeric)):
+ not isinstance(inspector_column.type, Numeric):
# don't single quote if the column type is float/numeric,
# otherwise a comparison such as SELECT 5 = '5.0' will fail
rendered_metadata_default = "'%s'" % rendered_metadata_default