ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48533] When using <sql> task to execute a SQL script including Chinese, sometimes the script cannot be parsed correctly
Date Mon, 18 Jan 2010 06:07:51 GMT

iJay <> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW

--- Comment #3 from iJay <> 2010-01-17 22:07:50 UTC ---
(In reply to comment #1)
> My guess is that the file's encoding doesn't match your platform's default
> encoding.
> Does it work if you specify the files encoding using <sql>'s encoding attribute
> explicitly?

Sure, the SQL script file is utf8 encoded.  If I remove "encoding" attribute
from sql task, the error msg will be

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near '??????CREATE DATABASE IF NOT EXISTS

(6 questions marks)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message