Skip to content
  • Rafael Mendonça França's avatar
    8d825b55
    Make we always type cast TimeWithZone objects before passing to mysql2 · 8d825b55
    Rafael Mendonça França authored
    mysql2 knows how to handle Time and Date objects but doesn't know
    about TimeWithZone. This was causing failures when prepared statements
    were enabled since we were passing TimeWithZone objects that mysql2 didn't
    know how to deal with.
    
    An new environment variable to enable prepared statements were added to
    config.example.yml, so we can test in our CI and prevent regressions.
    
    Fixes #41368.
    8d825b55
    Make we always type cast TimeWithZone objects before passing to mysql2
    Rafael Mendonça França authored
    mysql2 knows how to handle Time and Date objects but doesn't know
    about TimeWithZone. This was causing failures when prepared statements
    were enabled since we were passing TimeWithZone objects that mysql2 didn't
    know how to deal with.
    
    An new environment variable to enable prepared statements were added to
    config.example.yml, so we can test in our CI and prevent regressions.
    
    Fixes #41368.
Loading