Author: tfischer Date: Fri Feb 1 20:39:38 2013 New Revision: 1441620 URL: http://svn.apache.org/viewvc?rev=1441620&view=rev Log: TORQUE-251 make sql error behaviour configurable from the outside
Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/developer-info/test-project.xml db/torque/torque4/trunk/torque-test/pom.xml Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/developer-info/test-project.xml URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-site/src/site/xdoc/developer-info/test-project.xml?rev=1441620&r1=1441619&r2=1441620&view=diff ============================================================================== --- db/torque/torque4/trunk/torque-site/src/site/xdoc/developer-info/test-project.xml (original) +++ db/torque/torque4/trunk/torque-site/src/site/xdoc/developer-info/test-project.xml Fri Feb 1 20:39:38 2013 @@ -39,6 +39,16 @@ For the tests, the schema files from <i>target/torque/test/schema</i> with the replaced tokens are used. </li> + <li> + The test project checks whether the book table exists + in the database by executing the command + <code>select count(*) from book</code>. + If it fails, it is assumed that we work on an empty database + and no drop commands are generated. If it succeeds, we assume that + all tables have been dropped and generate all drop commands. + Should the database be in an inconsitent state, you can add + -DonSqlError=continue to execute all sql statements nonetheless. + </li> </ul> </p> </section> Modified: db/torque/torque4/trunk/torque-test/pom.xml URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/pom.xml?rev=1441620&r1=1441619&r2=1441620&view=diff ============================================================================== --- db/torque/torque4/trunk/torque-test/pom.xml (original) +++ db/torque/torque4/trunk/torque-test/pom.xml Fri Feb 1 20:39:38 2013 @@ -31,6 +31,10 @@ <packaging>jar</packaging> <name>Torque Test Project</name> + <properties> + <onSqlError>abort</onSqlError> + </properties> + <scm> <connection>scm:svn:http://svn.apache.org/repos/asf/db/torque/torque4/trunk/torque-test</connection> <developerConnection>scm:svn:https://svn.apache.org/repos/asf/db/torque/torque4/trunk/torque-test</developerConnection> @@ -373,7 +377,7 @@ <url>${torque.database.url}</url> <username>${torque.database.user}</username> <password>${torque.database.password}</password> - <onError>abort</onError> + <onError>${onSqlError}</onError> <autocommit>true</autocommit> <orderFile>ascending</orderFile> <fileset> @@ -402,7 +406,7 @@ <url>${torque.database.url}</url> <username>${torque.database.user}</username> <password>${torque.database.password}</password> - <onError>abort</onError> + <onError>${onSqlError}</onError> <autocommit>true</autocommit> <orderFile>ascending</orderFile> <fileset> --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscr...@db.apache.org For additional commands, e-mail: torque-dev-h...@db.apache.org