diff options
| author | Sidney Beck Nys <sb@ipwsystems.dk> | 2023-10-05 14:47:56 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2023-11-01 14:54:02 +0100 |
| commit | 4b5f56ee5193e0f0e64711dfba226eabd7260d55 (patch) | |
| tree | 49d375b905fb66961799591c125b2593de1b66a9 /drivers | |
| parent | 1501ccd07868d626a51802d14ed41ed05a3532ad (diff) | |
| download | adodb-4b5f56ee5193e0f0e64711dfba226eabd7260d55.tar.gz adodb-4b5f56ee5193e0f0e64711dfba226eabd7260d55.tar.bz2 adodb-4b5f56ee5193e0f0e64711dfba226eabd7260d55.zip | |
Fix mysqli bulkBind reset after one call
Stored the current bulkBind value in a variable so $this->bulkBind can
be reset after being set to false.
Fixes #1000 (PR #1300)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/adodb-mysqli.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/adodb-mysqli.inc.php b/drivers/adodb-mysqli.inc.php index 5271db17..7ec8962d 100644 --- a/drivers/adodb-mysqli.inc.php +++ b/drivers/adodb-mysqli.inc.php @@ -1144,8 +1144,10 @@ class ADODB_mysqli extends ADOConnection { } $bulkTypeArray[] = $typeArray; } + $currentBulkBind = $this->bulkBind; $this->bulkBind = false; $ret = $this->_execute($sql, $bulkTypeArray); + $this->bulkBind = $currentBulkBind; } else { $typeArray = $this->getBindParamWithType($inputarr); $ret = $this->_execute($sql, $typeArray); |
