Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all articles
Browse latest Browse all 445

Perl Script : Fetching CLOB Columns

$
0
0

Hi All,
 
I have a perl script that calls a sp in TD. The SP returns rows where each row has 4 clob columns.
I am using the following code scrippet to fetch the row and facing issue.

my $mod_query = $retrow->{mod_query1}."" .$retrow->{mod_query2}."" .$retrow->{mod_query3}."" .$retrow->{mod_query4};

The perl throws the following error :

DBD::ODBC::st fetchrow_hashref failed: st_fetch/SQLFetch (long truncated DBI attribute LongTruncOk not set and/or LongReadLen too small) (SQL-HY000) [state was HY000 now 01004]
[Teradata][ODBC Teradata Driver] Unable to get catalog string. (SQL-01004)
[Teradata][ODBC Teradata Driver] Unable to get catalog string. (SQL-01004)
[Teradata][ODBC Teradata Driver] Unable to get catalog string. (SQL-01004)
[Teradata][ODBC Teradata Driver] Unable to get catalog string. (SQL-01004)

The same code works fine where the variables are varchar ,etc.
Appreciate any help in this regard.

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>