Semicolon inside a string in INSERT/UPDATE

99 views
Skip to first unread message

henrique...@devcoffee.com.br

unread,
Feb 25, 2016, 1:29:32 PM2/25/16
to mybatis-user
Hello everyone,

I'm working in a project, and in this project I need to (sometimes) make a "migration", but all this SQL statments that given to me are files .sql. I've been looking in the internet, and I found the mybatis (ScriptRunner).
Works well in some files, but in files who contains ; in middle of the string sentence, the ScriptRunner fails to "migrate". Yeah, yeah, I know, the semicolon triggers the ScriptRunner parser and recognize the ; as end of line.
Exists another way to ignore the semicolon of the middle of string? (Changing the delimiter is out of question, because the file that given to me, is a company pattern of sql files);

Thanks :)


Iwao AVE!

unread,
Feb 25, 2016, 9:29:33 PM2/25/16
to mybatis-user
Hi,

Try setting sendFullScript to true if you haven't.

Regards,
Iwao
> --
> You received this message because you are subscribed to the Google Groups
> "mybatis-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mybatis-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages