You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tv...@apache.org on 2018/08/26 10:38:02 UTC

svn commit: r1839189 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java

Author: tv
Date: Sun Aug 26 10:38:02 2018
New Revision: 1839189

URL: http://svn.apache.org/viewvc?rev=1839189&view=rev
Log:
Fix DateTimeTimestampTest failing because default DATETIME type of MySQL doesn't support milliseconds.

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

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java?rev=1839189&r1=1839188&r2=1839189&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java (original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformMysqlImpl.java Sun Aug 26 10:38:02 2018
@@ -59,7 +59,7 @@ public class PlatformMysqlImpl extends P
                 new SqlType("MEDIUMTEXT"));
         setSchemaTypeToSqlTypeMapping(
                 SchemaType.TIMESTAMP,
-                new SqlType("DATETIME"));
+                new SqlType("DATETIME(3)")); // support milliseconds
         setSchemaTypeToSqlTypeMapping(
                 SchemaType.BINARY,
                 new SqlType("BLOB"));



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