mirror of https://github.com/apache/openjpa.git
OPENJPA-645 Date millisecond precision lost for Informix IDS and SQLServer
Commit the patch provided by Dinkar Rao git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@672017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3dbdac159
commit
2b3f7ec90c
|
@ -179,7 +179,6 @@ public class DBDictionary
|
|||
public int maxIndexNameLength = 128;
|
||||
public int maxIndexesPerTable = Integer.MAX_VALUE;
|
||||
public boolean supportsForeignKeys = true;
|
||||
public boolean supportsTimestampNanos = true;
|
||||
public boolean supportsUniqueConstraints = true;
|
||||
public boolean supportsDeferredConstraints = true;
|
||||
public boolean supportsRestrictDeleteAction = true;
|
||||
|
@ -1124,10 +1123,7 @@ public class DBDictionary
|
|||
nanos = 0;
|
||||
}
|
||||
|
||||
if (supportsTimestampNanos)
|
||||
val.setNanos(nanos);
|
||||
else
|
||||
val.setNanos(0);
|
||||
val.setNanos(nanos);
|
||||
|
||||
if (cal == null)
|
||||
stmnt.setTimestamp(idx, val);
|
||||
|
|
|
@ -133,8 +133,6 @@ public class InformixDictionary
|
|||
// Informix doesn't support aliases in deletes if the table has an index
|
||||
allowsAliasInBulkClause = false;
|
||||
|
||||
supportsTimestampNanos = false;
|
||||
|
||||
// Informix doesn't understand "X CROSS JOIN Y", but it does understand
|
||||
// the equivalent "X JOIN Y ON 1 = 1"
|
||||
crossJoinClause = "JOIN";
|
||||
|
|
|
@ -59,7 +59,6 @@ public class SQLServerDictionary
|
|||
requiresAliasForSubselect = true;
|
||||
|
||||
stringLengthFunction = "LEN({0})";
|
||||
supportsTimestampNanos = false;
|
||||
}
|
||||
|
||||
public void connectedConfiguration(Connection conn)
|
||||
|
|
Loading…
Reference in New Issue