Using `Option[BigDecimal]` with Anorm?
<p>Given:</p>

<h1>build.sbt</h1>

<pre><code>$cat build.sbt
scalaVersion := "2.11.8"

libraryDependencies += "com.typesafe.play" % "anorm_2.11" % "2.5.1"
</code></pre>

<h1>REPL</h1>

<pre><code>import anorm._

val x: Option[BigDecimal] = Some(42)
val none: Option[BigDecimal] = None

// invoke Oracle function `f`
scala&gt; SQL""" select f(#$x) from dual """.sql.statement
res0: String = " select f(Some(42)) from dual "

scala&gt; SQL""" select f(#$none) from dual """.sql.statement
res1: String = " select f(None) from dual "
</code></pre>

<p>I'd like for <code>res0</code> to equal: <code>select f(42) from dual</code>, and for <code>res1</code> to equal <code>select f(NULL) from dual</code>.</p>

<p>How can I modify my <code>SQL</code> code to fit my desired results?</p>

<p>I imported <code>anorm._</code>, per <a href="https://stackoverflow.com/a/22531320/409976">https://stackoverflow.com/a/22531320/409976</a>, however, it did not give my desired result.</p>