in reply to Re: 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)
Thanks for the tip.
I have tried it now.
$sth = $dbh->prepare($sql); $sth->execute(); my $lob; my $chrs_or_bytes_read = $sth->odbc_lob_read(0, \$lob, 65535, { TreatA +sLOB=>1 });
Results in .. Column 0 was not bound with TreatAsLOB
I guess this particular DBI method can only be used on columns that are bound to a prepare statement. If that's true, it can not be used in this instance. There is nothing to bind.
fails with$sth = $dbh->prepare($sql); $sth->bind_col(1, \$lob); $sth->execute();
cannot bind to non-existent field 1
I am sending a DDL statement (show table) into the database, and expecting to get a DDL script of the particular table as output. Everything works fine up until to a certain size of the DDL script, then I am getting the "truncation" error mentioned in the original post.
Regards, Jan
|
---|
Replies are listed 'Best First'. | |
---|---|
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 | |
by jahero (Pilgrim) on Oct 23, 2019 at 07:15 UTC |