This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin, perl or DBI seriously broken in 1.7.1?


Unless I'm going mad it seems either cygwin itself, perl, DBI or DBD::mysql
have been broken in 1.7.1 or the update to perl 5.10.

I'm running a script which has been working here for years
but is now broken and from what I can tell the issue is
fairly fundamental so I'm currently suspecting an issue
in perl 5.10. Thought I'd switch back to 5.8 but that's
not available by the setup.exe any more so I'm a bit stuck.

Anyway the details are:

use DBI;
use Data::Dumper;
// Setup db connection...
my $sql = "SELECT 214, 16, 150, 15, 55000, 5120, 5, 25769803776 FROM dual;
my $sth = $dbh->prepare( $sql );
$sth->execute or die "failed to execute";
my @array = $sth->fetchrow_array;
print Dumper( \@array );

Now assuming no errors @array should contain 8 items but it doesn't
instead I "randomly" get just the last value:
$VAR1 = [
         '25769803776'
       ];
or the correct value:
$VAR1 = [
         '214',
         '16',
         '150',
         '15',
         '55000',
         '5120',
         '5',
         '25769803776'
       ];

So what on earth is going on?

   Regards
   Steve


-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]