-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #991 from typelevel/bugfix/990
Fix for #990 - nested fragment interpolation
- Loading branch information
Showing
2 changed files
with
32 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2018-2021 by Rob Norris | ||
// This software is licensed under the MIT License (MIT). | ||
// For more information see LICENSE or https://opensource.org/licenses/MIT | ||
|
||
package tests.issue | ||
|
||
import skunk._ | ||
import skunk.codec.all._ | ||
import skunk.syntax.all._ | ||
|
||
|
||
object Issue990 { | ||
def updateBy[A](where: Fragment[A]): Command[String *: A *: EmptyTuple] = | ||
sql"""UPDATE foo SET bar = $text WHERE $where;""".command | ||
} |