ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41204] - ParsePropertyString throws away $$
Date Mon, 18 Dec 2006 23:16:50 GMT
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=41204>.
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=41204


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




------- Additional Comments From gudnabrsam@yahoo.com  2006-12-18 15:16 -------
(In reply to comment #4)
> I did try using $$$$, and that does work, but it's illegal PostgreSQL syntax. In
> other words, if I feed that stored proc directly into Postgres, it'll fail.
> Obviously, I'd rather not write my stored procs with ant in mind.
> 

Okay, is that loading the sql from a file, or as nested content?  If the latter,
you'll already have to write them twice.  Thus I assume the former.  Sounds like
Ant 1.7.0 will have the double property expansion bug.  I think 1.7.1 will
follow hot on the heels of 1.7.0, with Peter's proposed fix.  In 1.7.1 you
should be able to turn off property expansion; since you don't want your file to
be Ant-specific, you shouldn't need it.  For now I think your best bet is to
keep running 1.6.5 and preprocess your SQL file such that any occurrence of $$
is replaced by $$$$.  Because of property expansion you might find yourself
using a filter like:

<replacestring from="$$$$" to="$$$$$$$$" />

or something...

HTH,
Matt

-- 
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


Mime
View raw message