We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472fb71 commit 74788bdCopy full SHA for 74788bd
src/PDO/Peachpie.Library.PDO/PDOStatement.cs
@@ -321,11 +321,9 @@ public virtual bool closeCursor()
321
/// <returns>Returns TRUE on success or FALSE on failure</returns>
322
public virtual bool execute(PhpArray input_parameters = null)
323
{
324
- if (Result != null)
325
- {
326
- // reusing command
327
- Connection.ClosePendingReader();
328
- }
+ // close previous pending reader
+ // https://github.com/peachpiecompiler/peachpie/issues/1069
+ Connection.ClosePendingReader();
329
330
// parameters
331
BindParameters(_cmd.Parameters, input_parameters);
0 commit comments