DebugInfo: Fix handling of undef and falsy bind parameters

This commit is contained in:
Yorhel 2025-05-03 12:32:50 +02:00
parent cbccf045b7
commit 6787f32fd9

View file

@ -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 };