DBD-Teradata
view release on metacpan or search on metacpan
doc/tdatdbd.html view on Meta::CPAN
233823392340234123422343234423452346234723482349235023512352235323542355235623572358report_sub() to be called
with
the current total sent tuple count
whenever the tuple count MOD
$count
is zero (ie, a progress indicator)
NOTE: this only applies to pre v2R6.0 (ie, execute tuple at a
time
)
</ul><p>
Release 8.001.04<p>
<ul>
<li>fix st::DESTROY to finish()
if
'Active'
<li>weaken()
$dbh
->{_stmts}{CursorName} reference to
$sth
if
Scalar::Util::weaken() is available, in order
to permit sth->DESTROY() to be called
when
sth goes
out of scope in application
<li>updated Makefile.PL to
warn
if
Scalar::Util is not available
<li>removed perldoc from Makefile.PL (some platforms don't install it)
</ul><p>
Release 8.001.03<p>
lib/DBD/Teradata.pm view on Meta::CPAN
697071727374757677787980818283848586878889
my
$phsz
=
$ENV
{TDAT_PH_SIZE};
$phdfltsz
=
$phsz
if
defined
(
$phsz
) && (
$phsz
=~/^\d+$/) && (
$phsz
> 0) && (
$phsz
< 1024);
(
$dechi
,
$declo
) = (
$platform
== 7) ? (0, 1) : (1, 0);
$debug
=
$ENV
{TDAT_DBD_DEBUG} || 0;
$use_arm
= (
$Config
{archname}=~/^arm-linux/i);
our
$HAS_WEAKEN
=
eval
{
Scalar::Util::weaken(
my
$test
= \
"foo"
);
1;
};
};
our
%td_type_code2str
= (
400,
'BLOB'
,
404,
'DEFERRED BLOB'
,
408,
'BLOB LOCATOR'
,
416,
'CLOB'
,
420,
'DEFERRED CLOB'
,
lib/DBD/Teradata.pm view on Meta::CPAN
106010611062106310641065106610671068106910701071107210731074107510761077107810791080
Statement
=>
$args
->{Statement},
CursorName
=>
$args
->{CursorName}
})
or
return
$dbh
->set_err(-1,
'Unable to create statement handle.'
,
'S1000'
);
$sth
->STORE(
'NUM_OF_PARAMS'
,
delete
$args
->{NUM_OF_PARAMS});
$sth
->STORE(
'NUM_OF_FIELDS'
,
delete
$args
->{NUM_OF_FIELDS});
my
(
$key
,
$val
);
$sth
->{
$key
} =
$val
while
((
$key
,
$val
) =
each
%$args
);
$dbh
->{_stmts}{
$sth
->{CursorName}} =
$sth
;
Scalar::Util::weaken(
$dbh
->{_stmts}{
$sth
->{CursorName}})
if
$DBD::Teradata::HAS_WEAKEN
;
$dbh
->{_cursors}{
$sth
->{CursorName}} =
$sth
,
$sth
->{tdat_keepresp} = 1,
$sthp
[16] = 1
if
(
$#$stmtinfo
== 1) &&
(
$stmtinfo
->[1]{ActivityType} eq
'Select'
) &&
(
$sth
->{Statement}=~/\s+FOR\s+CURSOR\s*;?\s*$/i);
$dbh
->{tdat_nowait} =
$sth
->{tdat_nowait}
if
(
$dbh
->{tdat_utility} ne
'DBC/SQL'
);
$sth
->{tdat_TYPESTR} = DBD::Teradata::st::map_type2str(
$sth
)
( run in 0.241 second using v1.01-cache-2.11-cpan-55f5a4728d2 )