Skip to content

Commit

Permalink
Fixed stack corruption on callbacks RT#85562 RT#84974 [Aaron Schweiger]
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Jun 24, 2013
1 parent 8c3a98c commit 401f122
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ DBI::Changes - List of significant changes to the DBI

Fixed missing fields on partial insert via DBI::DBD::SqlEngine
engines (DBD::CSV, DBD::DBM etc.) [H.Merijn Brand, Jens Rehsack]
Fixed stack corruption on callbacks RT#85562 RT#84974 [Aaron Schweiger]

Added support for finding tables in multiple directories
via new DBD::File f_dir_search attribute [H.Merijn Brand]
Expand Down
8 changes: 6 additions & 2 deletions Driver.xst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ selectall_arrayref(...)
}
/* --- fetchall --- */
maxrows_svp = DBD_ATTRIB_GET_SVP(attr, "MaxRows", 7);
ST(0) = dbdxst_fetchall_arrayref(sth, &PL_sv_undef, (maxrows_svp) ? *maxrows_svp : &PL_sv_undef);
SV *tmp = dbdxst_fetchall_arrayref(sth, &PL_sv_undef, (maxrows_svp) ? *maxrows_svp : &PL_sv_undef);
SPAGAIN;
ST(0) = tmp;


void
Expand Down Expand Up @@ -660,7 +662,9 @@ fetchall_arrayref(sth, slice=&PL_sv_undef, batch_row_count=&PL_sv_undef)
ST(0) = tmp;
}
else {
ST(0) = dbdxst_fetchall_arrayref(sth, slice, batch_row_count);
SV *tmp = dbdxst_fetchall_arrayref(sth, slice, batch_row_count);
SPAGAIN;
ST(0) = tmp;
}


Expand Down

0 comments on commit 401f122

Please sign in to comment.