LP #887688: Prepared statements crash pt-query-digest

Description

**Reported in Launchpad by Daniel Nichter last update 09-01-2012 17:59:47

Prepared statements can cause pt-query-digest to crash:

Pipeline process 5 (iteration) caused an error: Use of uninitialized value in sprintf at 1.0/bin/pt-query-digest line 6922.
The pipeline caused an error: Use of uninitialized value in sprintf at 1.0/bin/pt-query-digest line 6922.

The tool does handle PS in general, but something in my sample file causes this bug in both 1.0 and 2.0.

Environment

None

Smart Checklist

Activity

lpjirasync January 24, 2018 at 1:48 PM

**Comment from Launchpad by: Daniel Nichter on: 08-11-2011 18:31:56

The problem is in QueryReportFormatter::prepared(), so the workaround is --report-format rusage,date,hostname,files,header,profile,query_report.

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 1:48 PM
Updated January 24, 2018 at 1:48 PM
Resolved January 24, 2018 at 1:48 PM