Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Fixed #39
Browse files Browse the repository at this point in the history
  • Loading branch information
inca committed Dec 5, 2010
1 parent ff62605 commit 52e5629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circumflex-orm/src/main/scala/common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait ParameterizedExpression extends SQLable {
* Renders this query by replacing parameter placeholders with actual values.
*/
def toInlineSql: String = parameters.foldLeft(toSql)((sql, p) =>
sql.replaceFirst("\\?", dialect.escapeParameter(p)))
sql.replaceFirst("\\?", dialect.escapeParameter(p).replaceAll("\\$", "\\\\\\$")))

override def equals(that: Any) = that match {
case e: ParameterizedExpression =>
Expand Down

0 comments on commit 52e5629

Please sign in to comment.