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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to