Skip Menu |

This queue is for tickets about the Net-AMQP CPAN distribution.

Report information
The Basics
Id: 86856
Status: open
Priority: 0/
Queue: Net-AMQP

People
Owner: Nobody in particular
Requestors: martin.krba [...] nike.sk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net::AMQP::Common - Missing option for long long integer
Date: Thu, 11 Jul 2013 16:41:37 +0100
To: bug-Net-AMQP [...] rt.cpan.org
From: Martin Krba <martin.krba [...] nike.sk>
Hi, I think there is an option for long long integer missing from Net::AMQP::Common my %_unpack_field_types = ( V => sub { undef }, S => \&unpack_long_string, I => \&unpack_long_integer, # original option (uppercase i) l => \&unpack_long_long_integer, # added option (lowercase L) D => sub { my $input_ref = shift; my $exp = unpack_octet($input_ref); my $num = unpack_long_integer($input_ref); $num / 10.0 ** $exp; }, F => \&unpack_field_table, A => \&unpack_field_array, T => \&unpack_timestamp, t => \&unpack_boolean, ); Best regards, Martin Krba
On Thu Jul 11 15:41:46 2013, martin.krba@nike.sk wrote: Show quoted text
> Hi, > > I think there is an option for long long integer missing from > Net::AMQP::Common > > my %_unpack_field_types = ( > V => sub { undef }, > S => \&unpack_long_string, > I => \&unpack_long_integer, # original option (uppercase i) > l => \&unpack_long_long_integer, # added option (lowercase L) > D => sub { > my $input_ref = shift; > my $exp = unpack_octet($input_ref); > my $num = unpack_long_integer($input_ref); > $num / 10.0 ** $exp; > }, > F => \&unpack_field_table, > A => \&unpack_field_array, > T => \&unpack_timestamp, > t => \&unpack_boolean, > );
The tale in https://www.rabbitmq.com/amqp-0-9-1-errata.html section 3 might be useful here. There's a few conflicts between implementations, unfortunately.