diff --git a/core/src/main/kotlin/com/github/andrewoma/kwery/core/BoundQuery.kt b/core/src/main/kotlin/com/github/andrewoma/kwery/core/BoundQuery.kt index 196245d..eefecc7 100644 --- a/core/src/main/kotlin/com/github/andrewoma/kwery/core/BoundQuery.kt +++ b/core/src/main/kotlin/com/github/andrewoma/kwery/core/BoundQuery.kt @@ -37,7 +37,7 @@ internal fun BoundQuery(query: String, inClauseSizes: Map): BoundQu } internal inline fun replaceBindings(query: String, onBinding: (String) -> String): String { - val pattern = Pattern.compile("""\:([a-zA-Z_]+[0-9]*)""") + val pattern = Pattern.compile("""\:(([a-zA-Z_]+[0-9]*)+)""") val matcher = pattern.matcher(query) val result = StringBuffer()