Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Strange DBI/DBD::ODBC behaviour (right truncation of data on ODBC call)

by poj (Abbot)
on Oct 22, 2019 at 20:47 UTC ( #11107867=note: print w/replies, xml ) Need Help??


in reply to Re^2: Strange DBI/DBD::ODBC behaviour (right truncation of data on ODBC call)
in thread Strange DBI/DBD::ODBC behaviour (right truncation of data on ODBC call)

I can't test this on Terradata but seems to work on MSSQL

my $sth = $dbh->prepare('select lob from table_lob'); $sth->execute(); $sth->bind_col(1, undef, {TreatAsLOB=>1}); $sth->fetch; $sth->odbc_lob_read(1, \my $data, 65335); print $data;
poj
  • Comment on Re^3: Strange DBI/DBD::ODBC behaviour (right truncation of data on ODBC call)
  • Download Code

Replies are listed 'Best First'.
Re^4: Strange DBI/DBD::ODBC behaviour (right truncation of data on ODBC call)
by jahero (Pilgrim) on Oct 23, 2019 at 07:15 UTC

    Thank you for the learning opportunity, that worked.

    I need to brush my DBI skills a bit more!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11107867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-05-21 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?