DBD-JDBC
view release on metacpan or search on metacpan
lib/DBD/JDBC.pm view on Meta::CPAN
{
package DBD::JDBC::BER::FETCH_RESP;
# TODO: Can this be another MYSEQUENCE?
sub unpack_array {
my ($self, $ber, $arg) = @_;
my ($ber2, $tag, $i, $field);
$self->unpack($ber, \$ber2);
# This value indicates whether or not there's a row to be decoded.
$ber2->decode(INTEGER => \$i);
push @$arg, $i;
if ($i) {
# tag() will return undef when the end of the buffer is reached
while ($tag = $ber2->tag()) {
if ($tag == $ber2->NULL()) {
$ber2->decode(NULL => \$field);
push @$arg, undef;
}
( run in 0.241 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )