[
http://jira.codehaus.org/browse/MSQL-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte updated MSQL-47:
-------------------------------
Attachment: MSQL-47_rfscholte.patch
I gave it a try as well, based on Mark's code.
There's only one thing: the javadoc says that the result is the position of the
end-character (the ';'), although Mark's test checks for result > 0.
{code}contains( ";" );{code}
if the index of semicolon is 0, then the contains-method has to change,
otherwise my code should be slightly modified:
{code}if ( ';' == line.charAt( pos ))
{
return pos++;
}{code}
> Syntax error if "--" is in escaped strings in sourced sql files
> ---------------------------------------------------------------
>
> Key: MSQL-47
> URL: http://jira.codehaus.org/browse/MSQL-47
> Project: Maven 2.x SQL Plugin
> Issue Type: Bug
> Environment: linux, maven 2.2.1, mysql 5.1.37, java 1.6.0_17
> Reporter: Ronald Steininger
> Assignee: Mark Struberg
> Priority: Minor
> Attachments: MSQL-47.patch, MSQL-47_rfscholte.patch,
> sql-maven-plugin-test.tgz
>
>
> see attached maven project.
> I get an syntax error if testcase.sql gets sourced via sql-maven-plugin. Said
> sql script works if sourced via mysql <testcase.sql
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email