ibatis2mybatis icon indicating copy to clipboard operation
ibatis2mybatis copied to clipboard

Missing variable replacement translation

Open joncarmignani opened this issue 2 months ago • 0 comments

Ibatis used to allow type-specified variable replacements as follows: #varName:DECIMAL#

It looks like only one of these types is translated (VARCHAR). So #myText:VARCHAR# translates to #{myText,jdbcType=VARCHAR}, but the above example is left untouched.

I wrote a regex pair to to the replacement. Not sure if this helps with XSLT, but here you go: Find: #(\w+):([A-Z]+)#

Replace: #{$1,jdbcType=$2}

joncarmignani avatar Oct 17 '25 00:10 joncarmignani