openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1330898 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java
Date Thu, 26 Apr 2012 15:10:54 GMT
Author: struberg
Date: Thu Apr 26 15:10:53 2012
New Revision: 1330898

URL: http://svn.apache.org/viewvc?rev=1330898&view=rev
Log:
OPENJPA-2178 switch Date PostgreSQL preci from CENTI to MICRO

We looked at the PostgreSQL documentation back to pgsql-6.3 (1998)
and all versions since then can deal with microseconds for TIMESTAMP 
fields.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java?rev=1330898&r1=1330897&r2=1330898&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java
Thu Apr 26 15:10:53 2012
@@ -143,7 +143,7 @@ public class PostgresDictionary
     public PostgresDictionary() {
         platform = "PostgreSQL";
         validationSQL = "SELECT NOW()";
-        datePrecision = CENTI;
+        datePrecision = MICRO;
         supportsAlterTableWithDropColumn = false;
         supportsDeferredConstraints = true;
         supportsSelectStartIndex = true;



Mime
View raw message