-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic SQL: choose/when/otherwise only valid in a single line #4
Comments
Hi Erysavy, Sounds like an already fixed bug. What version of mybatis-scala are you Frank. On Sat, Jan 11, 2014 at 9:44 PM, erysavy notifications@github.com wrote:
Frank D. Martínez M. |
Hi Frank, I'm using the latest version in the maven repository: mybatis-scala-core_2.10 I have checked this source version on code.google.com (trunk revision 5726): http://code.google.com/p/mybatis/source/browse/sub-projects/scala/trunk/mybatis-scala-core/src/main/scala/org/mybatis/scala/config/DynamicSQLBuilder.scala?r=5726#70 (lines 73 ... 87), Regards, Am Sonntag, 12. Januar 2014, 04:57:23 schrieb Frank David Martínez M:
|
Hi Eyal, If you are using google code version, you are with an old version. We moved https://github.com/mybatis/scala Cheers, Frank. On Sun, Jan 12, 2014 at 10:11 AM, erysavy notifications@github.com wrote:
Frank D. Martínez M. |
Hi Erysavy, I have confused your name (I am so sorry). The problem was fixed two months ago in github. 9f61f88#diff-15fce1edb26e4a4e020f124daeac7f7c Can you try the unreleased github version? Cheers, Frank. On Sun, Jan 12, 2014 at 11:19 AM, Frank Martínez mnesarco@gmail.com wrote:
Frank D. Martínez M. |
Hi Frank, thanks for the hint and sorry for missing this before. There's one point with this code, though: it accepts and discards any characters, even XML tags, inside the <choose> element and outside of <when> and <otherwise>. This seems a bit too permissive to me. Best, |
Hi Erysavy, You are right, it was a quick fix and it is too permissive. I will fix in Cheers, Frank. On Sun, Jan 12, 2014 at 7:40 PM, erysavy notifications@github.com wrote:
Frank D. Martínez M. |
@mnesarco Has this issue been addressed? |
Hi Jeremy, This is not addressed yet. But it is not critical and not blocking. I hope I will have some spare time soon. On Sat, Sep 12, 2015 at 2:33 PM, Jeremy Landis notifications@github.com
Frank D. Martínez M. |
When including a conditional expression to create dynamic SQL using "choose" and enclosed "when" and "otherwise" tags, a Scala MatchError is thrown if there is any whitespace between the tags.
E.g. this works ok:
but this doesn't and throws a MatchError in line 74 of DynamicSQLBuilder.scala:
The text was updated successfully, but these errors were encountered: