# Otherwise append the orphan line to the corresponding part of the query
} else {
+
# Append to the error statement if one is defined
if (exists $cur_info{$cur_pid}{statement}) {
$cur_info{$cur_pid}{statement} .= "\n" . $line if (!$nomultiline);
<td>$max_time</td>
<td>$avg_time</td>
<td id="queries-most-frequent-waiting-examples-details-rank-$rank">
- <div id="query-a-$rank" class="sql sql-largesize"><i class="icon-copy" title="Click to select query"></i>$query</div>$md5
+ <div id="query-a-$rank" class="sql sql-middlesize"><i class="icon-copy" title="Click to select query"></i>$query</div>$md5
$example
<!-- Examples collapse -->
<div id="queries-most-frequent-waiting-examples-rank-$rank" class="collapse">
<td>$max_size</td>
<td>$avg_size</td>
<td id="queries-generating-most-temporary-files-examples-details-rank-$rank">
- <div id="query-c-$rank" class="sql sql-largesize"><i class="icon-copy" title="Click to select query"></i>$query</div>$md5
+ <div id="query-c-$rank" class="sql sql-middlesize"><i class="icon-copy" title="Click to select query"></i>$query</div>$md5
$example
<!-- Examples collapse -->
<div id="queries-generating-most-temporary-files-examples-rank-$rank" class="collapse">
}
}
+ # Stores the error's detail if previous line was an error
+ if (($prefix_vars{'t_loglevel'} =~ /(DETAIL|STATEMENT|CONTEXT|HINT)/) && ($cur_info{$t_pid}{loglevel} =~ $main_error_regex)) {
+ if (($prefix_vars{'t_loglevel'} ne 'DETAIL') || ($prefix_vars{'t_query'} !~ /parameters: (.*)/)) {
+ # Store error details only if this is not a parameter list (never present with errors)
+ $cur_info{$t_pid}{"\L$prefix_vars{'t_loglevel'}\E"} .= $prefix_vars{'t_query'};
+ }
+ return;
+ }
+
+
# Special cases when a STATEMENT is parsed
if ($prefix_vars{'t_loglevel'} eq 'STATEMENT') {
# Stores temporary file statement if a temporary record with the same pid exists
}
}
- # Stores the error's detail if previous line was an error
- if (($prefix_vars{'t_loglevel'} =~ /(DETAIL|STATEMENT|CONTEXT|HINT)/) && ($cur_info{$t_pid}{loglevel} =~ $main_error_regex)) {
- if (($prefix_vars{'t_loglevel'} ne 'DETAIL') || ($prefix_vars{'t_query'} !~ /parameters: (.*)/)) {
- # Store error details only if this is not a parameter list (never present with errors)
- $cur_info{$t_pid}{"\L$prefix_vars{'t_loglevel'}\E"} .= $prefix_vars{'t_query'};
- }
- return;
- }
-
# set current session workload
if ( !$disable_session ) {
my $sess_count = scalar keys %current_sessions;
# Store the collected information into global statistics
if ($cur_info{$t_pid}{loglevel} =~ $main_error_regex) {
-
# Add log level at beginning of the query and normalize it
$cur_info{$t_pid}{query} = $cur_info{$t_pid}{loglevel} . ": " . $cur_info{$t_pid}{query};
my $normalized_error = &normalize_error($cur_info{$t_pid}{query});