Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 36730
Status: resolved
Priority: 0/
Queue: DBD-mysql

Owner: Nobody in particular
Requestors: tapoutmma [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Document Bug
Date: Fri, 13 Jun 2008 11:12:54 -0600
To: bug-DBD-mysql [...]
From: JC <tapoutmma [...]>
Download (untitled) / with headers
text/plain 586b In the docs, I see do { print "\nRowset ".++$i."\n---------------------------------------\n\n"; foreach $colno (0..$sth->{NUM_OF_FIELDS}) { print $sth->{NAME}->[$colno]."\t"; } I was getting an error, and noticed that the example has a bug in it. If I have 2 columns, $sth->{NUM_OF_FIELDS} will return 2. So the foreach loop will iterate 3 times and give a concatenation warning. Not a big issue, just letting you know... 0..$sth-{NUM_OF_FIELDS}-1 .. fixed it. Thanks for the great module! JC

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to