Re: Issue in to_timestamp/to_date while handling the quoted literal string

2019-07-25 Thread Suraj Kharage
Thanks for the clarification Brendan, that really helps. On Wed, Jul 24, 2019 at 6:24 PM Brendan Jurd wrote: > Hi Suraj, > > I think the documentation is reasonably clear about this behaviour, quote: > > " In to_date, to_number, and to_timestamp, literal text and double-quoted > strings result

Re: Issue in to_timestamp/to_date while handling the quoted literal string

2019-07-24 Thread Brendan Jurd
Hi Suraj, I think the documentation is reasonably clear about this behaviour, quote: " In to_date, to_number, and to_timestamp, literal text and double-quoted strings result in skipping the number of characters contained in the string; for example "XX" skips two input characters (whether or not

Issue in to_timestamp/to_date while handling the quoted literal string

2019-07-24 Thread Suraj Kharage
Hi, I noticed the issue in to_timestamp()/to_date() while handling the double quote literal string. If any double quote literal characters found in format, we generate the NODE_TYPE_CHAR in parse format and store that actual character in FormatNode->character. n DCH_from_char, we just increment