RE: Oracle and BLOBs



On Thu, 24 Nov 2005 13:55:48 +1100, Steve Baldwin wrote:

Hi Steve

That's good to know. I won't use that, though, in V 1.00. Here's the context
(pinched from the Postgres driver):

if ($sth->fetchrow_array() )
{
_run_sql($dbh, 'update ' . $self -> table_name() . ' set a_session=? where
id=?', $datastr, $sid) or return $self -> set_error("store(): serialize to db
failed " . $dbh->errstr() );
}
else
{
_run_sql($dbh, 'insert into ' . $self -> table_name() . ' (a_session, id)
values(?, ?)', $datastr, $sid) or return $self -> set_error("store():
serialize to db failed " . $dbh->errstr() );
}

and

sub _run_sql
{
my($dbh, $sql, $datastr, $sid) = @_;
eval
{
my($sth) = $dbh -> prepare($sql) or return 0;
$sth -> bind_param(1, $datastr) or return 0;
$sth -> bind_param(2, $sid) or return 0;
$sth -> execute() or return 0;
};
return 0 if $@;
return 1;
} # End of _run_sql.
--
Ron Savage
ron@xxxxxxxxxxxxx
http://savage.net.au/index.html


.



Relevant Pages

  • Re: Date Format
    ... Depends where and in what context. ... Jon ... > steve. ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • More Markie Mularkie
    ... >>> you are just as or worse than steve at taking stuff out of context ... >>Please feel free to explain the context in detail. ... We NEVER complain when you take the time to explain, IN ENGLISH, ... Prev by Date: ...
    (rec.radio.amateur.policy)
  • Re: Maccies resort to their typical dishonesty [was Re: You wanted an example of a price drop...]
    ... Agreed - and that includes if you were to show evidence that showed someone ... had broken the law and so stated... ... when not done in the context of a court. ... If so, Steve, do you have *any* counter to my argument against Bush? ...
    (comp.sys.mac.advocacy)
  • Re: Maccies resort to their typical dishonesty [was Re: You wanted an example of a price drop...]
    ... Agreed - and that includes if you were to show evidence that showed someone ... had broken the law and so stated... ... when not done in the context of a court. ... If so, Steve, do you have *any* counter to my argument against Bush? ...
    (comp.sys.mac.advocacy)
  • Re: Cheap PCs
    ... >> clue;) via the context I made the statements in. ... >> attempted to explain this to you and Snit... ... >> that my marriage has not been officially recognized." ... Steve thinks he is arguing against you as he ...
    (comp.sys.mac.advocacy)