Skip to content

Commit

Permalink
[finagle-mysql] Give NullParameter a friendly string representation
Browse files Browse the repository at this point in the history
Otherwise stringifying it results in random output like:
 `com.twitter.finagle.mysql.Parameter$NullParameter$@5550f534`.

This doesn't work well with e.g. snapshot tests.

Result

Closes #947

Differential Revision: https://phabricator.twitter.biz/D1107769
  • Loading branch information
yamin-oanda authored and jenkins committed Nov 1, 2023
1 parent 0038051 commit 0c3a8a3
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -179,6 +179,7 @@ object Parameter {
type A = Null
def value: Null = null
def evidence: CanBeParameter[Null] = CanBeParameter.nullCanBeParameter
override def toString: String = "Parameter(null)"
}
}

Expand Down

0 comments on commit 0c3a8a3

Please sign in to comment.