Open Bug 1275590 Opened 8 years ago Updated 8 years ago

view_job_queue.cgi fails with Oracle due to invalid SQL query

Categories

(Bugzilla :: Bugzilla-General, defect, P3)

Tracking

()

Bugzilla 6.0

People

(Reporter: LpSolit, Unassigned)

References

Details

An error occurred while performing a database operation:

DBD::Oracle::db selectall_arrayref failed: ORA-25155: column used in NATURAL join cannot have qualifier

at Bugzilla/DB.pm line 148.
	Bugzilla::DB::_handle_error(...) called at Bugzilla/DB/Oracle.pm line 435
	Bugzilla::DB::Oracle::selectall_arrayref(...) called at /var/www/html/bugzilla/view_job_queue.cgi line 69
	main::generate_report(...) called at /var/www/html/bugzilla/view_job_queue.cgi line 29
https://github.com/bugzilla/bugzilla/blob/master/view_job_queue.cgi#L58-L62 is the culprit.

Seems like we delete the word NATURAL and add " ON j.jobid = t.jobid"
something like?

             NATURAL LEFT JOIN (
                SELECT MAX(error_time) AS error_time, jobid
                  FROM ts_error
                 GROUP BY jobid
            ) t ON j.jobid = t.jobid
err, without NATURAL
I can't allocate resources to this right now, but it is important. P3 makes sense
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.