You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/07/06 11:48:44 UTC
DO NOT REPLY [Bug 35627] New: -
SQL CSV output incorrectly quoted
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35627>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35627
Summary: SQL CSV output incorrectly quoted
Product: Ant
Version: 1.6.2
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: robin@kizoom.com
CSV values from the SQL task are incorrectly quoted when they contain the
duoble-quote or comma character. Quoting should work something like this (but
there's probably a more Java-ish way -- StringReplace?):
quotep = false
while get character from input buffer
copy character to output buffer
if character is "\""
quotep = true
put second " in output buffer
if character is ","
quotep = true
end while
if quotep
output "\""
output output buffer
if quotep
output "\""
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org