All

Before submitting the following issue as a bug report,
I wanted to run it by this list, in order to:

a) Check that I am not missing something.
b) Get an opinion on whether the issue is with DBI or DBD::Sybase.

My toolchain is as follows:

Perl            v5.8.0
DBI             v1.35
DBD::Sybase     v0.95
Sybase ASE      v12.5.0.2 EBF 10574
Solaris v8

When I run the following Perl program:
======================================
#!/sbcimp/run/pd/perl/5.8.0/bin/perl

use strict;
use warnings;
use DBI;

my $dbh = DBI->connect("dbi:Sybase:server={server}", '{user}', '{pwd}');

printf "SQL:  ${_}DATA: *%s*\n\n", $dbh->selectall_arrayref($_)->[0][0] foreach <DATA>;

__END__
select "foo " from master..sysengines
select "foo " order by 1
select "foo " from master..sysengines order by 1
======================================

(having replaced {server}, {user} and {pwd}, obviously)

I get the following output:
======================================
SQL:  select "foo " from master..sysengines
DATA: *foo *

SQL:  select "foo " order by 1
DATA: *foo *

SQL:  select "foo " from master..sysengines order by 1
DATA: *foo*
======================================

The issue is that trailing whitespace has been truncated
from the last output.

When the same SQL is run using isql, the output is as expected.
So, this appears to be an issue either with DBI or with DBD::Sybase.

While attempting to diagnose the problem for myself, I came across
the ChopBlanks DBI attribute.  However, this does not appear to be
relevant and, in any case, I tried setting it to false explicitly
and this did not make any difference.

Any advice/comment would be much appreciated.

Best wishes

Kevin

+ANYTHING+BELOW+WAS+ADDED+AFTER+I+HIT+SEND+

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

Reply via email to