Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fragment interpolation breaks with nested fragments #990

Closed
taig opened this issue Oct 8, 2023 · 1 comment
Closed

Fragment interpolation breaks with nested fragments #990

taig opened this issue Oct 8, 2023 · 1 comment

Comments

@taig
Copy link
Contributor

taig commented Oct 8, 2023

import skunk.*
import skunk.codec.all.*
import skunk.syntax.all.*

def updateBy[A](where: Fragment[A]): Command[(String, A)] =
  sql"""UPDATE foo SET bar = $text WHERE $where;""".command
Found:    skunk.Command[String *: Nothing *: Nothing]
Required: skunk.Command[(String, A)]

https://scastie.scala-lang.org/KeXx8O03QROMVXV9Cx8ihQ

mpilquist added a commit that referenced this issue Oct 10, 2023
Fix for #990 - nested fragment interpolation
@mpilquist
Copy link
Member

Fixed by #991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants