Opened 15 years ago

Closed 15 years ago

#1114 closed patch (fixed) - call finish on statement before disconnecting

Reported by: sphery <mtdean@…> Owned by: xris
Priority: trivial Milestone: unknown
Component: mythtv Version:
Severity: low Keywords:
Cc: Ticket locked: no


The attached patch ensures that statement handles are not active before disconnecting to avoid DBI's printing a warning. Without the patch, when the script fails, the user sees the error and a DBI warning

mkdir view/Lost: Permission denied at ./ line 400
DBI::db=HASH(0x8356598)->disconnect invalidates 1 active statement handle
(either destroy statement handles or call finish on them before disconnecting)
at ./ line 227.

The warning is meant to alert the user that a fetch loop terminated early, perhaps due to an uncaught error. However, since has proper error checking (or, at least no known uncaught errors), the warning is likely to confuse the user in spite of the descriptive error message. (I tested the failure mode by generating links to a directory on which I remove write access.)

Attachments (1)

mythtv-mythrename-finish_on_disconnect.patch (464 bytes) - added by sphery <mtdean@…> 15 years ago.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by sphery <mtdean@…>


comment:1 Changed 15 years ago by xris

Resolution: fixed
Status: newclosed

(In [8728]) apply patch to close #1114

Note: See TracTickets for help on using tickets.