daml/ledger-service/db-backend/src/test/scala/com/digitalasset/http/dbbackend
Stephen Compall 221d0a0689
use doobie 0.9.0 Fragment-in-Fragment interpolation in json-api db-backend (#10399)
* use doobie 0.9.0 Fragment-in-Fragment interpolation in json-api db-backend

Since tpolecat/doobie#1045 (and therefore 4ca02e0eb6) doobie has
supported interpolating fragments in fragments.  We've used this feature
for several fragments written since #7618, but have left the ones
written before alone to use ++.  Here we change that where it
meaningfully clarifies the SQL subexpression.

Note that this does not entail a Put or Write instance for Fragment.
You cannot abstract over Fragment and arbitrary interpolated data in
this way, because Fragments are not treated as positional parameters;
that would mean being able to put arbitrary SQL substrings in positional
parameters.

CHANGELOG_BEGIN
CHANGELOG_END

* scalafmt

* useless whitespace accidentally removed
2021-07-23 19:42:06 +00:00
..
QueriesSpec.scala use doobie 0.9.0 Fragment-in-Fragment interpolation in json-api db-backend (#10399) 2021-07-23 19:42:06 +00:00