in reply to dbi odbc return string getting truncated
It's really difficult to tell what's going on here without a self-contained example. Without understanding what the problem is, it's difficult to propose a solution.
I'll take a shot at it, though .. your select statement
doesn't seem right. I expect the SQL parser would complain about the second column 'STARTEND' PEPSI. It could be that's the source of the 'STA', though.my $sth = $dbh->prepare( "select CAST('STARTEND' AS String) as COLA, 'STARTEND' PEPSI") or die "prepare statement failed: $dbh->errstr()";
Please update your post (leaving the original the way it is, or by replying to this post) with a clearer example of what's going on.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: dbi odbc return string getting truncated
by soonix (Canon) on Aug 07, 2019 at 14:07 UTC | |
by afoken (Chancellor) on Aug 07, 2019 at 18:42 UTC | |
Re^2: dbi odbc return string getting truncated
by perlnewbiedewbie (Initiate) on Aug 08, 2019 at 12:33 UTC | |
by hippo (Bishop) on Aug 08, 2019 at 12:51 UTC | |
by talexb (Chancellor) on Aug 08, 2019 at 14:41 UTC | |
by perlnewbiedewbie (Initiate) on Aug 09, 2019 at 10:16 UTC | |
by erix (Prior) on Aug 09, 2019 at 10:51 UTC |
In Section
Seekers of Perl Wisdom