Open
Description
When using func.now() as a default value for datetime fields in StorageSession, rapid consecutive updates can lead to situations where the update count is 0. This triggers SQLAlchemy's update count verification, resulting in an unnecessary exception even though the operation was logically successful (the timestamp was already current).
Possible Solutions
update_time: Mapped[datetime] = mapped_column( DateTime(precision=6), server_default=func.now(), onupdate=func.now() )