Re: Example: error loading a mysqldump file

2006-10-27 Thread Steve Loughran
Scot P. Floess wrote: Steve: Now that I give this some deeper thought...I see now what the intent is... I got hung up on dual parsing...one by task and one the the JDBC layer: clearly one has to be able to issue a sql statement - thus the delimiter attribute - duh on my part :( I do see

Re: Example: error loading a mysqldump file

2006-10-26 Thread Scot P. Floess
Steve: Now that I give this some deeper thought...I see now what the intent is... I got hung up on dual parsing...one by task and one the the JDBC layer: clearly one has to be able to issue a sql statement - thus the delimiter attribute - duh on my part :( I do see your point...and well t

Re: Example: error loading a mysqldump file

2006-10-26 Thread Steve Loughran
Scot P. Floess wrote: Honestly, this is an implementation issue IMHO with regards to Ant. It is treating each line as ONE sql statement. By using the -line continuation- character, it should fix the problem - namely the \ character. Placing SQL statements in a file makes perfect sense...per

Re: Example: error loading a mysqldump file

2006-10-25 Thread Peter Reilly
the use of the >> > designated recipients named above. If you are not the intended >> recipient, you are hereby notified that you have received >> > this communication in error and that any review, disclosure, >> dissemination, distribution or copying of it or its

Re: Example: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
nts > - Original Message - > From: "Hunter Peress" <[EMAIL PROTECTED]> > To: "Ant Users List" ; "Martin Gainty" < [EMAIL PROTECTED]> > Sent: Tuesday, October 24, 2006 8:15 PM > Subject: Example: error loading a mysqldump f

Re: Example: error loading a mysqldump file

2006-10-24 Thread Martin Gainty
s" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Tuesday, October 24, 2006 9:22 PM Subject: Re: Example: error loading a mysqldump file > Honestly, this is an implementation issue IMHO with regards to Ant. It > is treating each line as ONE sql statement. By using the -line

Re: Example: error loading a mysqldump file

2006-10-24 Thread Hunter Peress
s" <[EMAIL PROTECTED]> > To: "Ant Users List" ; "Martin Gainty" < [EMAIL PROTECTED]> > Sent: Tuesday, October 24, 2006 8:15 PM > Subject: Example: error loading a mysqldump file > > > >> Ant file: >> &g

Re: Example: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
sers List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Tuesday, October 24, 2006 8:15 PM Subject: Example: error loading a mysqldump file Ant file: use what; wtf.sql: insert into properties (value) values(""); insert into properties (value

Re: Example: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
Hunter: Did you use the \ character between each line? I swear this is exactly the same problem I had with postgres... Ant is treating each line as ONE sql statement. If your sql statement doesnt end properly, it will complain... So, since you span multiple lines...its an issue. Hunter

Re: Example: error loading a mysqldump file

2006-10-24 Thread Martin Gainty
t; Sent: Tuesday, October 24, 2006 8:15 PM Subject: Example: error loading a mysqldump file > Ant file: > classpath="../lib/mysql-connector-java-3.1.12-bin.jar" > driver="com.mysql.jdbc.Driver" >

Example: error loading a mysqldump file

2006-10-24 Thread Hunter Peress
Ant file: use what; wtf.sql: insert into properties (value) values(""); insert into properties (value) values("Hi"); Ok so if in mysql console you source wtf.sql there are no problems, its valid mysql. But ant bombs on it. Ant can handle each line ,but put them togeth