[teiid-issues] [JBoss JIRA] (TEIID-3186) PARSETIMESTAMP('12:10:10', 'hh:mm:ss') returns 00:10:10
Steven Hawkins (JIRA)
issues at jboss.org
Fri Oct 24 08:45:36 EDT 2014
[ https://issues.jboss.org/browse/TEIID-3186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014890#comment-13014890 ]
Steven Hawkins commented on TEIID-3186:
---------------------------------------
This behavior comes directly from Java. From http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html it would appear that K and h formatting are flipped in the documentation. In any case if you use KK or HH or kk you will get the result you expect.
> PARSETIMESTAMP('12:10:10', 'hh:mm:ss') returns 00:10:10
> -------------------------------------------------------
>
> Key: TEIID-3186
> URL: https://issues.jboss.org/browse/TEIID-3186
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7
> Reporter: Filip Nguyen
> Assignee: Steven Hawkins
>
> This
> {noformat}
> SELECT PARSETIMESTAMP('12:10:10', 'hh:mm:ss'), PARSETIMESTAMP('13:10:10', 'hh:mm:ss')
> {noformat}
> returns
> {noformat}
> 1970-01-01 00:10:10.0,1970-01-01 13:10:10.0
> {noformat}
> It seems odd to me. Shouldnt the result of PARSETIMESTAMP('12:10:10'... be 12:10:10?
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the teiid-issues
mailing list