MySQL DOUBLE accepts deprecated params that dont propagate from the base DOUBLE type, document this caveat #11132
Labels
datatypes
things to do with database types, like VARCHAR and others
documentation
mysql
PRs (with tests!) welcome
a fix or feature which is appropriate to be implemented by volunteers
Milestone
Describe the bug
Hi im trying to get startet with sql alchemy and alembic and just found a bug.
during the translation of a double precision=17, and decimal_return_scale=7 into mysql i always get an exception.
sqlalchemy.exc.ArgumentError: You must specify both precision and scale or omit both altogether.
When i check the kw at dialects/mysql/types.py i see that the parameter there is still the parameter decimal_return_scale=7, but named argument scale is None.
Optional link from https://docs.sqlalchemy.org which documents the behavior that is expected
No response
SQLAlchemy Version in Use
2.0.28
DBAPI (i.e. the database driver)
mysqlclient
Database Vendor and Major Version
MariaDB 10.*
Python Version
3.11
Operating system
Windows
To Reproduce
Error
Additional context
No response
The text was updated successfully, but these errors were encountered: