AW: Issue with sql task accessing MySql

2019-08-31 Thread jhm
19 16:04 > An: user@ant.apache.org > Betreff: Re: Issue with sql task accessing MySql > > Just to get the solution documented this thread, here's what I did. > This is a winders 7 machine running ant in cygwin. The ant call: > >value="update_build_tabl

Re: Issue with sql task accessing MySql

2019-08-29 Thread Eric Fetzer
Just to get the solution documented this thread, here's what I did.  This is a winders 7 machine running ant in cygwin.  The ant call:                                                         The bash script: #!/usr/bin/bash# ssh myUser@myMachine "mysql -u mySqlUser -pmySqlPassword mySqlDB -e

Re: Issue with sql task accessing MySql

2019-08-29 Thread Eric Fetzer
Thanks Stefan!  Took the easy path and outsourced the update to a simple bash script that ssh's to the MySql Server and runs the SProc there.  Thanks for all your help! On Wednesday, August 28, 2019, 04:02:17 PM EDT, Stefan Bodewig wrote: On 2019-08-28, Eric Fetzer wrote: >  Is there

Re: Issue with sql task accessing MySql

2019-08-28 Thread Stefan Bodewig
On 2019-08-28, Eric Fetzer wrote: > Is there a way to set that version JUST for this call? I'm afraid there is no way to run the task in a different JVM than the rest of Ant. Judging from https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-versions.html your MySQL Connector requires Java8

Re: Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
Also, any clue what version of Java do I need to use with this?  1.8? On Wednesday, August 28, 2019, 12:57:34 PM MDT, Eric Fetzer wrote: Is there a way to set that version JUST for this call?  We're building a legacy application here that CANNOT upgrade to a newer version of Java... 

Re: Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
Is there a way to set that version JUST for this call?  We're building a legacy application here that CANNOT upgrade to a newer version of Java...  Thanks! On Wednesday, August 28, 2019, 12:28:55 PM MDT, Stefan Bodewig wrote: On 2019-08-28, Eric Fetzer wrote: >  Thanks Stefan, a bit

Re: Issue with sql task accessing MySql

2019-08-28 Thread Stefan Bodewig
On 2019-08-28, Eric Fetzer wrote: > Thanks Stefan, a bit better: > $ ant -f test.xmlBuildfile: test.xml > main: > BUILD FAILEDc:\BuildDeployScripts\test.xml:22: > java.lang.UnsupportedClassVersionError: (com/mysql/jdbc/Driver) bad major > version at offset=6 > Total time: 0 seconds You are run

Re: Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
Thanks Stefan, a bit better: $ ant -f test.xmlBuildfile: test.xml main: BUILD FAILEDc:\BuildDeployScripts\test.xml:22: java.lang.UnsupportedClassVersionError: (com/mysql/jdbc/Driver) bad major version at offset=6 Total time: 0 seconds On Wednesday, August 28, 2019, 10:49:54 AM MDT, Stefan B

Re: Issue with sql task accessing MySql

2019-08-28 Thread Stefan Bodewig
On 2019-08-28, Eric Fetzer wrote: > The MySql server I'm accessing upgraded to version 8.0.17: > So, accordingly, I downloaded the proper driver and linked to it in my task: > > BUILD FAILEDc:\BuildDeployScripts\test.xml:22: > com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Cl

Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
The MySql server I'm accessing upgraded to version 8.0.17: mysql> select version();+---+| version() |+---+| 8.0.17    |+---+1 row in set (0.00 sec) So, accordingly, I downloaded the proper driver and linked to it in my task:                                            

ant sql task in different jvm

2012-07-11 Thread vineet arora
Hi, I am new to ant and before sending mail to this list I explored the issue on google but didn't get any satisfactory results. In one of my project, I require to run the below sql task in a different jvm. Actually in my build.xml file, I call a junit test using junit task and in

RE: Output of SQL-task

2012-02-06 Thread Anil
set feedback off works for me .. thanks -- View this message in context: http://ant.1045680.n5.nabble.com/Output-of-SQL-task-tp1336066p5459886.html Sent from the Ant - Users mailing list archive at Nabble.com. - To

Re: SQL task and iterating over results

2011-11-23 Thread montechristos
-- View this message in context: http://ant.1045680.n5.nabble.com/SQL-task-and-iterating-over-results-tp5017227p5017234.html Sent from the Ant - Users mailing list archive at Nabble.com

SQL task and iterating over results

2011-11-23 Thread montechristos
Hello, I have a small script that queries a DB to get some IDs. I would like to iterate over the result set (using ant 'for' task) without saving the results to a file. Can somebody provide some hints? Thanks -- View this message in context: http://ant.1045680.n5.nabble.com/SQ

Re: SQL task and rowcountproperty

2011-10-25 Thread Andy Stevens
On 4 August 2011 09:20, Miras Bastien wrote: > I'm trying to use the rowcountproperty parameter in the sql task. > > My ant code looks like: >                             driver="oracle.jdbc.driver.OracleDriver" >                             url=" jdbc:

SQL task and rowcountproperty

2011-08-04 Thread Miras Bastien
Hello, I'm trying to use the rowcountproperty parameter in the sql task. My ant code looks like:                             select * from t_product; But the db.data.nbLine property is not updated. Looking at: http://javasourcecode.org/html/open-source/ant/ant-1.8.1/org/apache/tool

Sql task and rowcountproperty

2011-08-04 Thread Miras Bastien
Hello, I'm trying to use the rowcountproperty parameter in the sql task. My ant code looks like:                             select * from t_product; But the db.data.nbLine property is not updated. Looking at: http://javasourcecode.org/html/open-source/ant/ant-1.8.1/org/apache/tool

Re: AW: sql task output suppressing a column

2010-12-01 Thread Laurence Mills-Gahl
n: Laurence Mills-Gahl [mailto:elem...@gmail.com] > Gesendet: Mittwoch, 1. Dezember 2010 17:45 > An: user@ant.apache.org > Betreff: sql task output suppressing a column > > I am having difficulty with the results of a sql task not being the same as > the results from the sql query in

Re: AW: sql task output suppressing a column

2010-12-01 Thread Laurence Mills-Gahl
-Ursprüngliche Nachricht- > Von: Laurence Mills-Gahl [mailto:elem...@gmail.com] > Gesendet: Mittwoch, 1. Dezember 2010 17:45 > An: user@ant.apache.org > Betreff: sql task output suppressing a column > > I am having difficulty with the results of a sql task not being the same as >

AW: sql task output suppressing a column

2010-12-01 Thread Rainer Noack
Hmm, sounds like a driver problem (jdbc vs. Native) , not an ant issue. -Ursprüngliche Nachricht- Von: Laurence Mills-Gahl [mailto:elem...@gmail.com] Gesendet: Mittwoch, 1. Dezember 2010 17:45 An: user@ant.apache.org Betreff: sql task output suppressing a column I am having difficulty

sql task output suppressing a column

2010-12-01 Thread Laurence Mills-Gahl
I am having difficulty with the results of a sql task not being the same as the results from the sql query in the db environment and I am wondering if anybody else has seen this behavior. I have a sql task executing the following query: SELECT c.property_value, center.name, s.property_value FROM

Re: Ant SQL task

2010-06-03 Thread Markus Mehrwald
Sry, the sql function should be without begin and end: CREATE OR REPLACE FUNCTION make_plpgsql() RETURNS void AS $$ CREATE LANGUAGE plpgsql; $$ LANGUAGE sql; Am 04.06.2010 01:13, schrieb Markus Mehrwald: Hi, I have a problem with the ant sql task. The task always gets the following error

Ant SQL task

2010-06-03 Thread Markus Mehrwald
Hi, I have a problem with the ant sql task. The task always gets the following error: [sql] Failed to execute: CREATE OR REPLACE FUNCTION make_plpgsql() RETURNS void AS $ BEGIN CREATE LANGUAGE plpgsql With the exception: Syntaxerror at "$" The script looks

SQL task

2010-05-12 Thread Solomon
I am having a difficulty with the SQL task trying to send functions to the mysql server. No mater what I have tried I get the error message that the server could not execute 'CREATE FUNCTION... My sql task is ... ... The Function is CREATE FUNCTION

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-13 Thread Antoine Levy Lambert
Hi, I would think that the bugger here is the "commit;" line. I think commit is something that the SQL task can do for you. Regards, Antoine mtbvang wrote: Removing the "SET FOREIGN_KEY_CHECKS=0" resolved the issue in my create table statement. Now I'm getting pret

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread mtbvang
) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:735) at org.apache.tools.ant.taskdefs.SQLExec.execSQL(SQLExec.java:565) at org.apache.tools.ant.taskdefs.SQLExec.runStatements(SQLExec.java:535) antoinell wrote: > > Hello, > > maybe "SET FOREIGN_KE

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread mtbvang
Thanks Antoine, that was it. It was a no brainer that I didn't see. Much appreciated. Vang mtbvang wrote: > > Hi, > > I am getting the following error when using the > /mysql-connector-java-5.1.10-bin.jar in an Ant 1.7 SQL task. For some > reason a ? is being placed

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread Antoine Levy-Lambert
Hello, maybe "SET FOREIGN_KEY_CHECKS=0" is not valid for a JDBC connection. There are some vendor specific SQL instructions which are not valid inside JDBC. The ant sql task is a wrapper around JDBC. Maybe the task would need to be extended somehow to allow this kind of settings

SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread mtbvang
Hi, I am getting the following error when using the /mysql-connector-java-5.1.10-bin.jar in an Ant 1.7 SQL task. For some reason a ? is being placed at the beginning of my comment and sql statement lines. I've included the error from the cmd prompt and my and tasks below. Any one know w

Does the "sql" task not close its connection when done?

2009-12-16 Thread KARR, DAVID (ATTCINW)
I'm trying to build a test suite using an embedded Derby server. In my build.xml, I have a "sql" task that executes my "create table" sql, and then I run "junit" to run my tests that use the database. I'm finding that Derby is giving me an error while

Re: Ant sql task fails while executing insert statement containg string description with "--"

2009-05-07 Thread AcO6
mple: > // SQL defines "--" as a comment to EOL > // and in Oracle it may contain a hint > // so we cannot just remove it, instead we must end it > if (!keepformat && line.indexOf("--") >= 0) { > sql.append("\n"); > } > I used keepformat=

Ant sql task fails while executing insert statement containg string description with "--"

2009-04-09 Thread Pradeep.C
SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: ('TestTable', 'TT1000', 'Common -- Te;N, VERSIONNO) VALUES; But if I execute this insert statement from the DB2 command prompt, it is getting executed successfully. Can you please help me in finding the reason for this

ant 1.6.5 sql task versus ant 1.7.0

2009-03-31 Thread Teggy
tead of C:\oracle\products\ora102010\jdbc\lib\ojdbc14.jar, I've tried the following: classes12.jar, classes12.zip, classes12dms.jar. But I wasn't successful with either them. Thanks for any feedback about the above. I'll be also interested to know if anyone has been able to use the

SQL Task to run execute dbms_java.grant_permission

2009-02-25 Thread tve
Hi there, I am trying to use ant SQL task to run the following "execute dbms_java.grant_permission" in an Oracle 10g database but the task is failing with the following error: ORA-00900: invalid SQL statement. I guess that the execute dbms_java is not a standard sql statement but bef

RE: ant sql task with keepformat

2008-09-18 Thread Gareth Davies
We found the problem. The parser chokes if there are any spaces after the delimiter and there was a "go " on one line. Grr... -Original Message- From: Gareth Davies Sent: 16 September 2008 16:35 To: user@ant.apache.org Subject: ant sql task with keepformat I'm trying t

ant sql task with keepformat

2008-09-16 Thread Gareth Davies
I'm trying to use ant's sql task to execute scripts on a Sybase ASE 12.5.1 database. I thought everything was working but realized that without the 'keepformat' attribute set my SQL files are being munged (lined endings and comments being stripped) which means stored procs

Re: Executing a sorted fileset of .sql files in sql task

2008-05-19 Thread Carlos Alonso
AIL PROTECTED]> wrote: Hi everyone. I'm looking for an automated way to execute a set of .sql files inside a sql task and I do need them to be executed in order. The ant task I've tried is the following

Re: Executing a sorted fileset of .sql files in sql task

2008-05-17 Thread Andrew Goktepe
for an automated way to execute a set of .sql files inside a > sql task and I do need them to be executed in order. The ant task I've tried > is the following > > driver = "com.mysql.jdbc.Driver" > password = "root" >

Executing a sorted fileset of .sql files in sql task

2008-05-16 Thread Carlos Alonso
Hi everyone. I'm looking for an automated way to execute a set of .sql files inside a sql task and I do need them to be executed in order. The ant task I've tried is the following inclu

Re: Isssues Running .sql from SQL Task of ANT

2008-05-11 Thread Andrew Goktepe
either of these but this is what I would try next. -Andrew On Thu, May 8, 2008 at 1:52 AM, Kothari, Shivani <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am executing .sql which has procedure with [EMAIL PROTECTED] . This .sql > is executed from SQL Task through ANT scripts.

Isssues Running .sql from SQL Task of ANT

2008-05-08 Thread Kothari, Shivani
Hi, I am executing .sql which has procedure with [EMAIL PROTECTED] . This .sql is executed from SQL Task through ANT scripts. This .sql file having procedure is runnin properly form sql server studio. Statements in SQL procedure : SET @PLOT_LINK = 'openForm("ESD_ADM032_FRM_AU

RE: issues with SQL task and the PRINT statement in external .sql files

2008-04-18 Thread Nathan Hattala
helps you understand what seems to be going on Thanks, -nathan -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 7:46 AM To: Ant Users List Subject: Re: issues with SQL task and the PRINT statement in external .sql files Nathan Hatta

Re: sql task truncating utf8 input

2008-04-08 Thread Alex Miller
> > truncated after apostrophe') > > > > This will insert data for each value, but it appears in the table like > > this: > > 1 Good data. > > 10 When it > > 11 Good data, and then It > > > > My sql task in build.xml contain

sql task truncating utf8 input

2008-04-08 Thread Alex Miller
insert data for each value, but it appears in the table like this: 1 Good data. 10 When it 11 Good data, and then It My sql task in build.xml contains the following: DROP DATABASE IF EXISTS ${db.name}; CREATE DATABASE ${db.name} CHARACTER SET utf8; USE ${db.name}; When I r

Re: issues with SQL task and the PRINT statement in external .sql files

2008-04-01 Thread Steve Loughran
Nathan Hattala wrote: Hello, So I have been banging my head against a wall it seems because I have been trying to automate the database build and deployment process for our software. The goal I have is using ANT and the sql task, to execute an existing .sql file that was developed and placed

issues with SQL task and the PRINT statement in external .sql files

2008-03-31 Thread Nathan Hattala
Hello, So I have been banging my head against a wall it seems because I have been trying to automate the database build and deployment process for our software. The goal I have is using ANT and the sql task, to execute an existing .sql file that was developed and placed in SVN. I am having an

Re: SQL task and resource collections ...

2008-02-27 Thread Matt Benson
--- John Shott <[EMAIL PROTECTED]> wrote: > Matt: > > Thanks for your quick response ... I had been > unaware of the > task/condition and will begin > reading up on it > immediately as that is clearly a useful feature in > cases such as this one. > > I particularly appreciate the fact that y

Re: SQL task and resource collections ...

2008-02-26 Thread John Shott
Matt: Thanks for your quick response ... I had been unaware of the task/condition and will begin reading up on it immediately as that is clearly a useful feature in cases such as this one. I particularly appreciate the fact that you and Steve have both taken the time to look into my particu

RE: SQL task and resource collections ...

2008-02-26 Thread Chun Ji
: SQL task and resource collections ... Steve: Thanks for your informative response and your suspicion that I may have a problem with the size() of my fileset. Since I can't seem to find a simple method of trying to test the size of my fileset, in advance of my call of the sql task, I&#

Re: SQL task and resource collections ...

2008-02-26 Thread Matt Benson
br, Matt > > HTH, > Matt > > --- John Shott <[EMAIL PROTECTED]> wrote: > > > Steve: > > > > Thanks for your informative response and your > > suspicion that I may have > > a problem with the size() of my fileset. > > > > Si

Re: SQL task and resource collections ...

2008-02-26 Thread Matt Benson
; a problem with the size() of my fileset. > > Since I can't seem to find a simple method of trying > to test the size of > my fileset, in advance of my call of the sql task, > I've now tried to > modify my target to first create a fileset, then > created a property > bas

Re: SQL task and resource collections ...

2008-02-26 Thread John Shott
Steve: Thanks for your informative response and your suspicion that I may have a problem with the size() of my fileset. Since I can't seem to find a simple method of trying to test the size of my fileset, in advance of my call of the sql task, I've now tried to modify my targe

Re: SQL task and resource collections ...

2008-02-26 Thread Steve Loughran
John Shott wrote: Ant community: I'm trying to upgrade my build.xml to be ant 1.7.0 compatible and seem to be stumbling on changes in the SQL task related to resource collections. I have been trying: keepformat="true" delimiter="/" escapeproces

SQL task and resource collections ...

2008-02-25 Thread John Shott
Ant community: I'm trying to upgrade my build.xml to be ant 1.7.0 compatible and seem to be stumbling on changes in the SQL task related to resource collections. I have been trying: keepformat="true" delimiter="/" escapeprocessing="false&qu

Re: Problem using sql task with ant 1.6.5

2007-09-10 Thread ericswebber
ingapp\build.xml:205: java.sql.SQLException: No su itable Driver for jdbc.hsqldb:db/test Total time: 9 seconds C:\dl\java\spring\projects\springapp> -- View this message in context: http://www.nabble.com/Problem-using-sql-task-with-ant-1.6.5-tf4262377.html#a12596421 Sent from the Ant - User

Re: Problem using sql task with ant 1.6.5

2007-08-14 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Do you need to any specific to use sql task in ant 1.6.5? Is there a work around ? It says C:\projects\springapp\build.xml:114: Class Not Found: JDBC driver org.hsqldb.jdb cDriver could not be loaded

Problem using sql task with ant 1.6.5

2007-08-13 Thread Srikrishna_Parthasarathy
Do you need to any specific to use sql task in ant 1.6.5? Is there a work around ? srikrishna C:\projects\springapp>ant -verbose createTables Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Detected Java version: 1.5 in: C:\bea92\jdk150_10\jre Detected

AW: AW: How to silence errors in SQL task or log

2007-03-21 Thread Jan.Materne
Mittwoch, 21. März 2007 15:51 >An: Ant Users List >Betreff: Re: AW: How to silence errors in SQL task or log > >You didn't test the ideas. But I have, at least a) > > No, a) does not work because the error is not redirected but doubled! > > b) sounds too complicat

Re: AW: How to silence errors in SQL task or log

2007-03-21 Thread Hans Schwaebli
ecial output could be done with Jan >-Ursprüngliche Nachricht- >Von: Hans Schwaebli [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 21. März 2007 14:35 >An: Ant Users List >Betreff: Re: How to silence errors in SQL task or log > >Internal, external ... didn't m

AW: How to silence errors in SQL task or log

2007-03-21 Thread Jan.Materne
Just some ideas ... a) b) custom Logger - if a special output comes, it starts/ends logging - special output could be done with mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 21. März 2007 14:35 >An: Ant Users List >Betreff: Re: How to silence errors in SQL task or log &g

Re: How to silence errors in SQL task or log

2007-03-21 Thread Hans Schwaebli
that it is digging in the dirt deeply because of "by design" stuff. Its not just Ant, but CruiseControl, CVS and other stuff with such things. Steve Loughran <[EMAIL PROTECTED]> wrote: Hans Schwaebli wrote: > Can anybody tell my why cannot be used for the SQL task? because

Re: How to silence errors in SQL task or log

2007-03-21 Thread Steve Loughran
Hans Schwaebli wrote: Can anybody tell my why cannot be used for the SQL task? because sql task is not executing an external program I want to silence the errors if they occur when running the SQL task. But it didn't work. Any solution? Best would be to log all errors of a certai

How to silence errors in SQL task or log

2007-03-20 Thread Hans Schwaebli
Can anybody tell my why cannot be used for the SQL task? I want to silence the errors if they occur when running the SQL task. But it didn't work. Any solution? Best would be to log all errors of a certain SQL task on info level. This flexibility I am mi

Re: How to share a database connection betwwen differnet ant (sql) task

2007-01-12 Thread Steve Loughran
ashish shrivastava wrote: Thanks Steve , Your inputs are great help. Regards Ashish Shrivastava Software Enginner Impetus Infotech Pvt Ltd Indore,India I should add that if you do want to do bulk imports of data, the fastest way to do it in mysql is to use the LOAD FILE sql command. I pr

Re: How to share a database connection betwwen differnet ant (sql) task

2007-01-11 Thread ashish shrivastava
Thanks Steve , Your inputs are great help. Regards Ashish Shrivastava Software Enginner Impetus Infotech Pvt Ltd Indore,India On 1/11/07, Steve Loughran <[EMAIL PROTECTED]> wrote: ashish shrivastava wrote: > I am OK with the complexity. I can not group sql task as there are >

Re: How to share a database connection betwwen differnet ant (sql) task

2007-01-11 Thread Steve Loughran
ashish shrivastava wrote: I am OK with the complexity. I can not group sql task as there are dependencies on other tasks. please tell me how to achieve it. ahh. when I said complexity, I meant "nobody in the ant team wants to write the code to do connection pooling as there is l

Re: How to share a database connection betwwen differnet ant (sql) task

2007-01-10 Thread ashish shrivastava
I am OK with the complexity. I can not group sql task as there are dependencies on other tasks. please tell me how to achieve it. Thanks Ashish On 1/11/07, Steve Loughran <[EMAIL PROTECTED]> wrote: ashish shrivastava wrote: > I am using ANT for deployment of my product.I ne

Re: How to share a database connection betwwen differnet ant (sql) task

2007-01-10 Thread Steve Loughran
ashish shrivastava wrote: I am using ANT for deployment of my product.I need to run different SQL's at different stages of my deployment, so if i use ANT SQL task it will create a new DB connection each time.Is there any way i can share the DB connection between different tasks.(may be pu

How to share a database connection betwwen differnet ant (sql) task

2007-01-10 Thread ashish shrivastava
I am using ANT for deployment of my product.I need to run different SQL's at different stages of my deployment, so if i use ANT SQL task it will create a new DB connection each time.Is there any way i can share the DB connection between different tasks.(may be putting the connection in Pr

Re: R: Ant-sql task in rel 1.7.0

2006-12-20 Thread Peter Reilly
IL PROTECTED] > Inviato: martedì 19 dicembre 2006 14.35 > A: Ant Users List > Oggetto: Re: Ant-sql task in rel 1.7.0 > > > Are you using ant 1.7.0RC1 ? > If so, try using ant -noproxy > > Peter > > On 12/19/06, Caleandro <[EMAIL PROTECTED]> wrote: > > Hi all,

R: Ant-sql task in rel 1.7.0

2006-12-20 Thread Caleandro
manual is very poor about the argument? Thanks, Vito > -Messaggio originale- > Da: Peter Reilly [mailto:[EMAIL PROTECTED] > Inviato: martedì 19 dicembre 2006 14.35 > A: Ant Users List > Oggetto: Re: Ant-sql task in rel 1.7.0 > > > Are you using ant 1.7.0RC1

Re: Ant-sql task in rel 1.7.0

2006-12-19 Thread Peter Reilly
Are you using ant 1.7.0RC1 ? If so, try using ant -noproxy Peter On 12/19/06, Caleandro <[EMAIL PROTECTED]> wrote: Hi all, Please, I need help about ant task. A script like this: Select * from SCHEMA1.Table01; runs correctly (as is) in ant 1.6.5 but in 1.7.0 it s

Ant-sql task in rel 1.7.0

2006-12-19 Thread Caleandro
Hi all, Please, I need help about ant task. A script like this: Select * from SCHEMA1.Table01; runs correctly (as is) in ant 1.6.5 but in 1.7.0 it seem to hang-up and loop indefinitely till I type a break key on keyboard. Oracle(9i) server console does not signal any

Re: SQL task - creating tablespace in Oracle problem

2006-08-31 Thread Antoine Levy-Lambert
Hello, sorry, this is not an Ant problem at all. Look for an Oracle mailing list. Regards, Antoine Original-Nachricht Datum: Thu, 31 Aug 2006 06:52:34 -0700 (PDT) Von: Angus Rose <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: SQL task - creating tablespace in

SQL task - creating tablespace in Oracle problem

2006-08-31 Thread Angus Rose
this problem, and if so how do I solve it? Angus -- View this message in context: http://www.nabble.com/SQL-task---creating-tablespace-in-Oracle-problem-tf2196872.html#a6079797 Sent from the Ant - Users forum at Nabble.com. ---

Re: Ant Sql task slow

2006-07-13 Thread Steve Loughran
eastwoj wrote: yes. same machine .. i'm wondering if the problem might be something to do with the fact that Ant is using JDBC to execute the statements while sqlplus uses sqlnet. Maybe ant is reading all 23000 statements into memory and that's a problem? this is probably way out of ant's no

RE: Ant Sql task slow

2006-07-12 Thread eastwoj
happy with that because its not as elegant .. but the time is down from 15-20 mins to about 4 -- View this message in context: http://www.nabble.com/Ant-Sql-task-slow-tf1932043.html#a5300179 Sent from the Ant - Users forum at

RE: Ant Sql task slow

2006-07-12 Thread Anderson, Rob (Global Trade)
I just looked at the source for the sql task. Ant will read the file line by line and execute the statements sequentially as they appear in the file, without loading the entire file into memory. The sql task will certainly not be as fast as a native application like sqlplus. What are the specs of

RE: Ant Sql task slow

2006-07-12 Thread eastwoj
ext: http://www.nabble.com/Ant-Sql-task-slow-tf1932043.html#a5295331 Sent from the Ant - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Ant Sql task slow

2006-07-12 Thread Anderson, Rob (Global Trade)
That is a lot. Are you running both sqlplus and Ant's sql task on the same machine? In other words is there any difference in the network between where you are running the two. -Rob A > -Original Message- > From: eastwoj [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July

RE: Ant Sql task slow

2006-07-12 Thread eastwoj
around 23,000 insert statements .. -- View this message in context: http://www.nabble.com/Ant-Sql-task-slow-tf1932043.html#a5293969 Sent from the Ant - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Ant Sql task slow

2006-07-12 Thread Anderson, Rob (Global Trade)
How many rows are you inserting? How much data? -Rob A > -Original Message- > From: eastwoj [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 12, 2006 9:39 AM > To: user@ant.apache.org > Subject: Ant Sql task slow > > > I'm trying to execute a sql fi

Ant Sql task slow

2006-07-12 Thread eastwoj
I'm trying to execute a sql file using Ant's sql task via a Maven goal. The goal passes a file of insert statements to the Ant sql task. When I run the insert statements in the file in sqlplus, they run in a few minutes. Running them via the ant task, though .. takes upwards of 15

RE: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Keith Hatton
t: 27 June 2006 17:49 To: Ant Users List Subject: RE: SQL task - how to set collation (working with MySQL) Sure. If I use the console for example, I use: mysql -u[user] -p[password] --default-character-set=[charset] This causes the console client to use the corresponding charset, and by that -

RE: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Eitan Gur
specific charset... Thanks Jan, Eitan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 5:39 PM To: user@ant.apache.org Subject: AW: SQL task - how to set collation (working with MySQL) Can you give an command line example for MySQL? Jan

AW: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Jan.Materne
Can you give an command line example for MySQL? Jan >-Ursprüngliche Nachricht- >Von: Eitan Gur [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 27. Juni 2006 18:38 >An: Ant Users List >Betreff: RE: SQL task - how to set collation (working with MySQL) > >I think

RE: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Eitan Gur
PROTECTED] Sent: Tuesday, June 27, 2006 5:34 PM To: user@ant.apache.org Subject: AW: SQL task - how to set collation (working with MySQL) >I wanted to know whether (and how) I can instruct ANT to use a >specific collation with the SQL task (specifically - when using MySQL). Hhmm ... rea

AW: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Jan.Materne
>I wanted to know whether (and how) I can instruct ANT to use a >specific collation with the SQL task (specifically - when using MySQL). Hhmm ... really an Ant related question or more SQL related? Jan - To unsubscr

SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Eitan Gur
Hi I wanted to know whether (and how) I can instruct ANT to use a specific collation with the SQL task (specifically – when using MySQL). Thanks

RE: postgres stored procedure sql task problem

2006-05-19 Thread Anderson, Rob (Global Trade)
. -Rob A > -Original Message- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 18, 2006 1:17 AM > To: Ant Users List > Subject: Re: postgres stored procedure sql task problem > > Hey Rob, > > Thanks for help. The problem is this work

Re: postgres stored procedure sql task problem

2006-05-19 Thread Scot P. Floess
help, Gareth Anderson, Rob (Global Trade) wrote: Can you post the portion of your build.xml that produces the error you mention below. -Rob A -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 9:15 AM To: Ant Users List Subject: postgres stored

Re: postgres stored procedure sql task problem

2006-05-18 Thread Gareth Reakes
: Since Ant is not throwing the exception, I don't think there is a problem with your usage of the sql task. I would suggest asking in a postgresql forum. Sorry I cannot offer more help. -Rob A -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006

RE: postgres stored procedure sql task problem

2006-05-17 Thread Anderson, Rob (Global Trade)
Since Ant is not throwing the exception, I don't think there is a problem with your usage of the sql task. I would suggest asking in a postgresql forum. Sorry I cannot offer more help. -Rob A > -Original Message- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: T

Re: postgres stored procedure sql task problem

2006-05-17 Thread Gareth Reakes
t the portion of your build.xml that produces the error you mention below. -Rob A -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 9:15 AM To: Ant Users List Subject: postgres stored procedure sql task problem Hi all, Apologies if this en

Re: postgres stored procedure sql task problem

2006-05-17 Thread Scot P. Floess
Sent: Tuesday, May 16, 2006 9:15 AM To: Ant Users List Subject: postgres stored procedure sql task problem Hi all, Apologies if this ends up being a duplicate - It seems this email was not registered I am having a problem sucking in a stored procedure. I works fine on the command lin

Re: postgres stored procedure sql task problem

2006-05-17 Thread Gareth Reakes
Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 9:15 AM To: Ant Users List Subject: postgres stored procedure sql task problem Hi all, Apologies if this ends up being a duplicate - It seems this email was not registered I am having a problem sucking

Re: postgres stored procedure sql task problem

2006-05-16 Thread Gareth Reakes
Hey, I have tried both referencing it but file with the src attribute and by putting in the sql tag. The file works with the -f option on the command line with psql (also with redirection in). Cheers, Gareth Scot P. Floess wrote: Sorry sounds like smart alec question...but there is not

postgres stored procedure sql task problem

2006-05-16 Thread Gareth Reakes
Hi all, I am having a problem sucking in a stored procedure. I works fine on the command line to psql but gives the error org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted string at or near $update_track_rating_average$ DECLARE current_average_rating

RE: postgres stored procedure sql task problem

2006-05-16 Thread Anderson, Rob (Global Trade)
Can you post the portion of your build.xml that produces the error you mention below. -Rob A > -Original Message- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 16, 2006 9:15 AM > To: Ant Users List > Subject: postgres stored procedure sql task prob

Re: postgres stored procedure sql task problem

2006-05-16 Thread Scot P. Floess
I seem to remember having some issue creating stored procs and tables, etc defined in a file with the task. I think what I had to do is escape each line like: create proc foo; \ ... \ ... Of course disregard the terrible markup above ;) Its been quite a few years so I don't remember all the

  1   2   >