| 1 | package Protocol::Database::PostgreSQL::Backend::ParameterDescription; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | our $VERSION = '2.000'; # VERSION | |
| 7 | |||
| 8 | 4 | ▶ | use parent qw(Protocol::Database::PostgreSQL::Backend); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Protocol::Database::PostgreSQL::Backend::ParameterDescription | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | sub new_from_message { | ||
| 19 | 0 | ▶ | my ($class, $msg) = @_; |
|
Subroutine
new_from_message: not called CC=2 SCAR=17.9
Pod
documented
| |||
| 20 | 0 | (undef, my $size, my $count) = unpack('C1N1n1', $msg); | |
| 21 | 0 | substr $msg, 0, 7, ''; | |
| 22 | 0 | my @oid_list; | |
| 23 | 0 | for my $idx (1..$count) { | |
| 24 | 0 | my ($oid) = unpack('N1', $msg); | |
| 25 | 0 | substr $msg, 0, 4, ''; | |
| 26 | 0 | push @oid_list, $oid; | |
| 27 | } | ||
| 28 | 0 | return $class->new( | |
| 29 | oids => \@oid_list | ||
| 30 | ); | ||
| 31 | } | ||
| 32 | |||
| 33 | 4 | 1; | |
| 34 | |||
| 35 | =head1 AUTHOR | ||
| 36 | |||
| 37 | Tom Molesworth <TEAM@cpan.org> | ||
| 38 | |||
| 39 | =head1 LICENSE | ||
| 40 | |||
| 41 | Copyright Tom Molesworth 2010-2019. Licensed under the same terms as Perl itself. | ||
| 42 | |||