Skip to content

Commit 3b5b5a5

Browse files
committed
Add "or again" to "perhaps you need to call execute first" errstr for in-Active sth
1 parent 24d7642 commit 3b5b5a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DBI.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ sub _new_sth { # called by DBD::<drivername>::db::prepare)
18881888
my $fields = $sth->FETCH('NUM_OF_FIELDS') || 0;
18891889
if ($fields <= 0 && !$sth->{Active}) {
18901890
return $sth->set_err($DBI::stderr, "Statement has no result columns to bind"
1891-
." (perhaps you need to successfully call execute first)");
1891+
." (perhaps you need to successfully call execute first, or again)");
18921892
}
18931893
# Backwards compatibility for old-style call with attribute hash
18941894
# ref as first arg. Skip arg if undef or a hash ref.

DBI.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ dbih_sth_bind_col(SV *sth, SV *col, SV *ref, SV *attribs)
18561856
PERL_UNUSED_VAR(attribs);
18571857
croak("Statement has no result columns to bind%s",
18581858
DBIc_ACTIVE(imp_sth)
1859-
? "" : " (perhaps you need to call execute first)");
1859+
? "" : " (perhaps you need to successfully call execute first, or again)");
18601860
}
18611861

18621862
if ( (av = DBIc_FIELDS_AV(imp_sth)) == Nullav)

0 commit comments

Comments
 (0)