LP #1075773: pt-fk-error-logger crashes if there's no foreign key error

Description

**Reported in Launchpad by Daniel Nichter last update 16-11-2012 00:09:06

If there's never been a fk error, then get_fk_error() tries to match /LATEST FOREIGN KEY ERROR/, finds and returns nothing, but then the main loop continues anyway as long as there's an insert sth. It should actually check the return values of get_fk_error(). Easy to reproduce: just spin up a new sandbox and run the tool and you'll get an error about $ts being undefined.

Environment

None

Smart Checklist

Activity

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 2:16 PM
Updated January 24, 2018 at 2:16 PM
Resolved January 24, 2018 at 2:16 PM