Bug: SQLAlchemy models with default=func.now() error with Unexpected default type #3457
Open
1 of 4 tasks
Labels
Bug 🐛
This is something that is not working as expected
Description
Columns with
default=func.now()
will causeSQLAlchemySerializationPlugin
to error withValueError: Unexpected default type
.Workaround is replacing it with
server_default=func.now()
URL to code causing the issue
No response
MCVE
Steps to reproduce
No response
Screenshots
No response
Logs
Litestar Version
sqlalchemy = { extras = ["asyncio"], version = "^2.0.29" }
litestar = {extras = ["sqlalchemy", "standard"], version = "^2.8.2"}
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: