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

INSERTing a text field containing $$ throws an exception #39

Closed
semorrison opened this issue Dec 4, 2010 · 1 comment
Closed

INSERTing a text field containing $$ throws an exception #39

semorrison opened this issue Dec 4, 2010 · 1 comment

Comments

@semorrison
Copy link

Here's a stack trace:

Caused by: java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Matcher.java:713)
at java.util.regex.Matcher.replaceFirst(Matcher.java:861)
at java.lang.String.replaceFirst(String.java:2146)
at ru.circumflex.orm.ParameterizedExpression$$anonfun$toInlineSql$1.apply(common.scala:30)
at ru.circumflex.orm.ParameterizedExpression$$anonfun$toInlineSql$1.apply(common.scala:29)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:123)
at scala.collection.immutable.List.foldLeft(List.scala:45)
at ru.circumflex.orm.ParameterizedExpression$class.toInlineSql(common.scala:29)
at ru.circumflex.orm.Insert.toInlineSql(query.scala:356)
at ru.circumflex.orm.Statistics$.executeDml(statistics.scala:69)
at ru.circumflex.orm.DMLQuery$class.execute(query.scala:346)
at ru.circumflex.orm.Insert.execute(query.scala:356)
at ru.circumflex.orm.Record.persist(record.scala:101)
at ru.circumflex.orm.Record.INSERT
$bang(record.scala:88)
at ru.circumflex.orm.Record.INSERT(record.scala:96)

See the javadocs for [String.replaceFirst](http://download.oracle.com/javase/6/docs/api/java/lang/String.html#replaceFirst(java.lang.String, java.lang.String%29) for an explanation and fix.

Any ideas for a work around in the meantime?

@inca
Copy link
Owner

inca commented Dec 5, 2010

FIxed in 52e5629, thanks a lot!

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants