mouser13 has asked for the wisdom of the Perl Monks concerning the following question:
#Thinking the line below is not being passed correctly?my $dsn = "DBI:Proxy:hostname=$pghost;port=12400;dsn=DBI:Oracle:$pgdat +abase; use vars qw($conn); $conn = DBI->connect($dsn, $pguser, $pgpassword, LongReadLen=>15000000 +, AutoCommit=> 1, RaiseError=>1, PrintError=>1}); my $sql1=qq{ insert into LOCAL_FILE_BLOBS VALUES('$CWMS','$FILE_T',20,'$DES', '$org',TO_DATE('$DATE_IN','YYYY-MM-DD HH24:MI:SS'), ?,(select MAX(FILE_ID) +1 from LOCAL_FILE_BLOBS))}; print "$sql1<BR>\n"; my $sth1 = $conn->prepare($sql1);
This code is modeled after my working massinsert program I run with DBD::Oracle? Just wondering what do I have to do to make it work though DBI::Proxy? Or if it is even possible?$sth1->bind_param(1, $temp, {ora_field => 'FILE_DATA', ora_type =>113 }); $sth1->execute($temp);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: INSERT BLOB data though DBI:Proxy
by tmaly (Monk) on Sep 05, 2008 at 15:18 UTC | |
by mouser13 (Novice) on Sep 05, 2008 at 15:54 UTC |