Re: DBD::Oracle -- NULL LOB Locator is not "null"
- From: Mladen Gogala <mgogala.SPAM_ME.NOT@xxxxxxxxxxx>
- Date: Sun, 27 May 2007 19:08:13 GMT
On Thu, 24 May 2007 14:08:01 -0400, Sven Miller wrote:
(DBD::Oracle version 1.17)
Given the following:
my $sLobLocator;
my $hSQL = $hDB->prepare(q{
BEGIN
:lob := NULL;
END;
}, { ora_auto_lob => 0 });
$hSQL->bind_param_inout( ':lob', \$sLobLocator, 0, { ora_type =>
ORA_BLOB } ); $hSQL->execute;
print "\$sLobLocator = $sLobLocator\n"; print "\$\$sLobLocator =
$$sLobLocator\n";
The output is:
$sLobLocator = OCILobLocatorPtr=SCALAR(0x1632d10) $$sLobLocator =
25412916
I expected for $sLobLocator to be undefined or empty, or at least for
$$sLobLocator to be 0. Is this a bug, or is this by design? If this is
by design, is there a proper way to determine whether a LOB Locator
contains NULL?
Thanks for any insight!
LOB locator is never empty. If you want to check for emptiness,
you should check by using DBMS_LOB.GETLENGTH.
--
http://www.mladen-gogala.com
.
- References:
- DBD::Oracle -- NULL LOB Locator is not "null"
- From: Sven Miller
- DBD::Oracle -- NULL LOB Locator is not "null"
- Prev by Date: Re: OS X 10.8.4 DBD::mysql build looking for libmysqlclient in wrong place?
- Next by Date: Problem with Long Varchar Ingres Linux
- Previous by thread: DBD::Oracle -- NULL LOB Locator is not "null"
- Next by thread: Re: DBD::Oracle -- NULL LOB Locator is not "null"
- Index(es):