Does anyone know why the first query would be causing this error to be thrown while the second one works?
ORA-01882: timezone region not found 01882. 00000 - "timezone region %s not found"
Causes Error: SELECT SYSTIMESTAMP AT TIME ZONE (SELECT t.TIME_ZONE FROM SOME_TABLE t WHERE t.TIME_ZONE = 'America/Denver' AND ROWNUM = 1) FROM DUAL
Works Correctly: SELECT SYSTIMESTAMP AT TIME ZONE (SELECT 'America/Denver' FROM SOME_TABLE t WHERE ROWNUM = 1) FROM DUAL
Note: This is running on a Oracle Database 11g Release 11.2.0.4.0 - 64bit db. I've verified both queries work correctly on another db with the same db version. Not sure what else could be causing this.
SOME_TABLE.TIME_ZONE
? Is it just a varchar2? – kfinity