Skip to content

Commit fd81680

Browse files
Temporary workaround for missing Double in SQL Alchemy 1.4
1 parent 08ae4da commit fd81680

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cardinal_pythonlib/sqlalchemy/schema.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,19 @@
6868
Boolean,
6969
Date,
7070
DateTime,
71-
Double,
7271
Float,
7372
Integer,
7473
Numeric,
7574
SmallInteger,
7675
Text,
7776
TypeEngine,
7877
)
78+
79+
try:
80+
from sqlalchemy.sql.sqltypes import Double
81+
except ImportError:
82+
from sqlalchemy.sql.sqltypes import Float as Double
83+
7984
from sqlalchemy.sql.visitors import Visitable
8085

8186
from cardinal_pythonlib.logs import get_brace_style_log_with_null_handler

0 commit comments

Comments
 (0)