This should be pretty reproducible I hope.
I'm on Oracle 11g. This query, which I use as part of another query, is acting strangely:
SELECT TRUNC(SYSDATE - ROWNUM) DATEITEM FROM DUAL CONNECT BY ROWNUM <= 32 UNION SELECT TRUNC(SYSDATE + ROWNUM) DATEITEM FROM DUAL CONNECT BY ROWNUM <= 32 order by dateitem desc;
This should return 32 days before and after today's date, in descending order.
It has always worked, and always had, until today.
For some reason, this does not return September 26th. It skips right from 25 to 27th.
I cannot figure a rhyme or reason for this. This query did return the 25th on the 25th for example (and so I have no evidence that it leaves out only sysdate, as it worked yesterday).
What the heck have I done wrong here?