Skip to content

Commit

Permalink
Make sure do_tmp_sth does not stick around if we switch from do with …
Browse files Browse the repository at this point in the history
…params to quickexec version
  • Loading branch information
turnstep committed Aug 20, 2019
1 parent 68b8a8c commit 7434b4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pg.xs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ void do(dbh, statement_sv, attr=Nullsv, ...)
char *statement;
D_imp_dbh(dbh);

/* Always reset the last stored sth */
imp_dbh->do_tmp_sth = NULL;

statement_sv = pg_rightgraded_sv(aTHX_ statement_sv, imp_dbh->pg_utf8_flag);
statement = SvPV_nolen(statement_sv);

Expand Down

0 comments on commit 7434b4a

Please sign in to comment.