I’m working with a legacy Java app that’s pulling data from Oracle. One of the queries appears to no longer work:
select {hier.*} from ecadmin.dept_hier_cache hier
connect by prior parent_deptid = deptid
start with deptid = '1234';
When I remove the ‘{}’ brackets from around hier.*, everything works as normal. Now, as far as I can tell the app hasn’t changed for over a year, so this means a change to Oracle is the most likely culprit. Any ideas on what might have changed? Version upgrade, a setting was changed, something else?
As far as I can tell that never would have worked. It was never valid syntax, and I can’t understand why anyone would even try curly brackets in the code.
Assuming you have source control, I’d check whether the code ever had a version without the brackets. If so, I’d suspect that the code got changed in the source but never promoted.
Possibly the string got filtered/cleaned before being executed.
Can you tell when it stopped working and what happened around that date ?