Skip to content

Commit

Permalink
Merge pull request #16 from miclefebvre/master
Browse files Browse the repository at this point in the history
We cound`t use letter after using a number in the bind parameters.
  • Loading branch information
andrewoma committed Sep 4, 2017
2 parents 1e6605b + 76dcfbe commit de7a0dc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ internal fun BoundQuery(query: String, inClauseSizes: Map<String, Int>): 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()
Expand Down

0 comments on commit de7a0dc

Please sign in to comment.