Author: shawkins
Date: 2012-04-12 14:49:04 -0400 (Thu, 12 Apr 2012)
New Revision: 3996
Modified:
branches/7.7.x/common-core/src/main/java/org/teiid/core/types/basic/StringToTimestampTransform.java
Log:
TEIID-1995 adding fractional seconds
Modified:
branches/7.7.x/common-core/src/main/java/org/teiid/core/types/basic/StringToTimestampTransform.java
===================================================================
---
branches/7.7.x/common-core/src/main/java/org/teiid/core/types/basic/StringToTimestampTransform.java 2012-04-11
20:36:55 UTC (rev 3995)
+++
branches/7.7.x/common-core/src/main/java/org/teiid/core/types/basic/StringToTimestampTransform.java 2012-04-12
18:49:04 UTC (rev 3996)
@@ -33,7 +33,7 @@
public class StringToTimestampTransform extends Transform {
private static boolean validate = true;
- private static Pattern pattern = Pattern.compile("\\d{4}-\\d{2}-\\d{2}
\\d{2}:\\d{2}:\\d{2}"); //$NON-NLS-1$
+ private static Pattern pattern = Pattern.compile("\\d{4}-\\d{2}-\\d{2}
\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?"); //$NON-NLS-1$
static {
try {
Show replies by date