-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect method shown in stack trace #14356
Comments
From @friouxCreated by @friouxI think that for some reason a method is getting incorrectly named in a use 5.20.1; while ($DataLoop->FetchRow) { BEGIN { use warnings; sub new { my $self = {}; $self->{DBI_DBH} = DBI->connect( sub FetchRow { if (my $sth = $self->{DBI_STH}) { return 1 if @row; sub Finish { sub Prepare { $self->{DBI_SQL_STATMENT} = $SQL_statment; my $dbh = $self->{DBI_DBH}; my $sth = $dbh->prepare_cached($SQL_statment, {}, 1); return if $self->{DBI_STH} = $sth; sub Execute { my $sth = $self->{DBI_STH}; $sth->execute(@values) if $sth; $self->{DBI_ERR} = $DBI::err; die "->Sql($self->{DBI_SQL_STATMENT}) Error= Error($DBI::err) : $DBI::errstr" $self->{DBI_NAME} = $sth->{NAME} if $sth; return ($self->{DBI_ERR}) ? 1 : undef; } 1; I get the following as the output when I run with Carp::Always: $ perl -MCarp::Always ~/bar.pl Perl Info
|
From @jkeenanOn Mon Dec 22 11:10:24 2014, frew@cpan.org wrote:
Can you comment on why you believe this is a problem with the Perl 5 core distribution rather than with one of the modules in your example? Also, can you be a bit more specific about which method is getting misnamed? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From frioux@gmail.comOn Mon, Dec 22, 2014 at 03:28:26PM -0800, James E Keenan via RT wrote:
Not really no. Initially I thought it was a DBI problem, but Tim
In the printed stack trace the final line is My::DBIODBC::FetchRow(My::DBIODBC=HASH(0x2552370)) called at /home/frew/bar.pl line 8 Yet line 8 is actually $DataLoop->Finish; So for some reason the call to ->Finish consistently gets reported as -- |
From @demerphqOn 23 December 2014 at 15:30, fREW Schmidt <frioux@gmail.com> wrote:
FetchRow() is called in the while condition. This is an old issue with I suspect this is in the "hard-to-fix/wont-fix" category. Yves -- |
From frioux@gmail.comOn Tue, Dec 23, 2014 at 06:57:14AM -0800, yves orton via RT wrote:
Ok! Not a huge deal to me, I was worried it was a 5.20 regression -- |
Migrated from rt.perl.org#123480 (status was 'open')
Searchable as RT123480$
The text was updated successfully, but these errors were encountered: