db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1555420 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DoInsertTest.java
Date Sat, 04 Jan 2014 20:53:34 GMT
Author: tfischer
Date: Sat Jan  4 20:53:34 2014
New Revision: 1555420

URL: http://svn.apache.org/r1555420
Log:
skip test for mssql which requires insertion of a defined id

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DoInsertTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DoInsertTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DoInsertTest.java?rev=1555420&r1=1555419&r2=1555420&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DoInsertTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DoInsertTest.java
Sat Jan  4 20:53:34 2014
@@ -29,6 +29,7 @@ import org.apache.torque.BaseDatabaseTes
 import org.apache.torque.Column;
 import org.apache.torque.ColumnImpl;
 import org.apache.torque.adapter.IDMethod;
+import org.apache.torque.adapter.MssqlAdapter;
 import org.apache.torque.criteria.Criteria;
 import org.apache.torque.om.ObjectKey;
 import org.apache.torque.test.dbobject.Author;
@@ -149,6 +150,12 @@ public class DoInsertTest extends BaseDa
     public void testDoInsertWithSelectSingleRecordIdSet()
             throws Exception
     {
+        if (defaultAdapter instanceof MssqlAdapter)
+        {
+            log.warn("testDoInsertWithSelectSingleRecordIdSet(): "
+                  + "Setting explicit Ids is not (easily) supported by MSSQL");
+            return;
+        }
         Criteria selectCriteria = new Criteria()
             .where(AuthorPeer.AUTHOR_ID, authorList.get(0).getAuthorId())
             .addSelectColumn(new ColumnImpl(



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message