db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1379251 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DefaultValuesFromDatabaseTest.java
Date Fri, 31 Aug 2012 01:40:18 GMT
Author: tfischer
Date: Fri Aug 31 01:40:18 2012
New Revision: 1379251

URL: http://svn.apache.org/viewvc?rev=1379251&view=rev
Log:
TORQUE-217: fix test for mssql

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

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DefaultValuesFromDatabaseTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DefaultValuesFromDatabaseTest.java?rev=1379251&r1=1379250&r2=1379251&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DefaultValuesFromDatabaseTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/DefaultValuesFromDatabaseTest.java
Fri Aug 31 01:40:18 2012
@@ -413,6 +413,10 @@ public class DefaultValuesFromDatabaseTe
         {
             sql = "call " + toSelect;
         }
+        else if (defaultAdapter instanceof MssqlAdapter)
+        {
+            sql = "select convert(datetime," + toSelect +")";
+        }
         else
         {
             sql = "select " + toSelect;



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