Closed Bug 193985 Opened 22 years ago Closed 22 years ago

Errors from SendSQL aren't being reported

Categories

(Bugzilla :: Bugzilla-General, defect)

2.17.3
x86
Linux
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: bbaetz, Assigned: bbaetz)

Details

Attachments

(1 file)

So, we need to hide errors _after_ we execute the statement, not before. 'Oops'
Attached patch fixSplinter Review
I dropped the return - it always returns 0 (since we die on error instead of return) and noone was checking it anyway according to a quick egrep
Comment on attachment 114866 [details] [diff] [review] fix That results in a "500 Internal Server Error" if the SQL fails. It should ThrowCodeError instead.
Attachment #114866 - Flags: review-
Summary: Errors from SendSQL aren't bing reported → Errors from SendSQL aren't being reported
Comment on attachment 114866 [details] [diff] [review] fix We've always done it that way - the old code (ie <=2.16) was just a die. See _handle_error. We can't fix up the code from teh modules just yet, because the new CGI::Carp uses CORE:GLOBAL::die, and that needs to be done at compile time rather than runtime, like the require. Fixing up all of our error handling is on my todo list somewhere. This patch doesn't change things fromthat pov, except that now we don't just ignore the error.
Attachment #114866 - Flags: review- → review?(justdave)
Hmm. bz-review got told that I denied justdave's request. Known bug?
Comment on attachment 114866 [details] [diff] [review] fix ok, in that case, go for it.
Attachment #114866 - Flags: review?(justdave) → review+
Flags: approval+
Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 2.18
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: