DebugInfo: Fix handling of undef and falsy bind parameters
This commit is contained in:
parent
cbccf045b7
commit
6787f32fd9
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ my @sections = (
|
|||
|
||||
# Convert binary params to text.
|
||||
# For queries with text_params, assume the params are already valid for the text format.
|
||||
my @binparams = grep $_->{type} && !$_->{text}, map $_->{params}->@*, @$queries;
|
||||
my @binparams = grep $_->{type} && !exists $_->{text}, map $_->{params}->@*, @$queries;
|
||||
my @arg = map +($_->{type}, $_->{bin}), @binparams;
|
||||
my @text;
|
||||
my $ok = !@arg || eval { @text = $FU::DB->bin2text(@arg); 1 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue