Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-mysql: Correctly convert java.sql.{Date,Timestamp} to Parameter
Problem The java.sql.Date and java.sql.Timestamp implicits are ignored and the java.util.Date conversion is used instead, because of the contravariance of the CanBeParameter type parameter and the fact that java.sql.Date and java.sql.Timestamp extend java.util.Date. Solution Use only one implicit (for the supertype) and pattern match within it to create the correct Parameter. JIRA Issues: CSL-6021 TBR=true Differential Revision: https://phabricator.twitter.biz/D195351
- Loading branch information
Stefan Lance
authored and
jenkins
committed
Jul 24, 2018
1 parent
77a6a31
commit b486772
Showing
3 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters