Fixed a missing `dialect` parameter in the bind_processor method of _DateTimeBase, avoiding potential runtime errors.
Added a comment to clarify grouping rows by constraint ID for multi-column foreign keys.
class _DateTimeBase:
- def bind_processor(self):
+ def bind_processor(self, dialect):
def process(value):
if type(value) == datetime.date:
return datetime.datetime(value.year, value.month, value.day)
)
)
+ # group rows by constraint ID, to handle multi-column FKs
fkeys = util.defaultdict(
lambda: {
"name": None,