db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1379243 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMssqlImpl.java
Date Fri, 31 Aug 2012 01:03:26 GMT
Author: tfischer
Date: Fri Aug 31 01:03:26 2012
New Revision: 1379243

URL: http://svn.apache.org/viewvc?rev=1379243&view=rev
Log:
TORQUE-217: fix date default values for mssql

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMssqlImpl.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMssqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMssqlImpl.java?rev=1379243&r1=1379242&r2=1379243&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMssqlImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMssqlImpl.java
Fri Aug 31 01:03:26 2012
@@ -36,7 +36,7 @@ import org.apache.torque.templates.typem
 public class PlatformMssqlImpl extends PlatformDefaultImpl
 {
     /** The date format for formatting database dates. */
-    private static String DATE_FORMAT = "''yyyyMMdd HH:mm:ss''";
+    private static final String DATE_FORMAT = "''yyyyMMdd HH:mm:ss''";
 
     /**
      * Default constructor.
@@ -110,11 +110,11 @@ public class PlatformMssqlImpl extends P
     /**
      * {@inheritDoc}
      */
-    @Override
-    public String getDateString(Date date)
+    public String getTimestampString(Date date)
     {
         SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
         dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
         return dateFormat.format(date);
     }
+
 }



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