Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysqli: bulkBind reset after one call #1000

Closed
eposjk opened this issue Sep 6, 2023 · 0 comments
Closed

mysqli: bulkBind reset after one call #1000

eposjk opened this issue Sep 6, 2023 · 0 comments
Labels
bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1)
Milestone

Comments

@eposjk
Copy link

eposjk commented Sep 6, 2023

setting $db->bulkBind=true and making multiple $db->execute()-calls produce the error message 2D Array of values sent to execute and 'ADOdb_mysqli::bulkBind' not set. It seems that bulkBind is being set to false at

$this->bulkBind = false;

Proposed Solution:

+ $bulkBind = $this->bulkBind;
$this->bulkBind = false;
$ret = $this->_execute($sql, $bulkTypeArray);
+ $this->bulkBind = $bulkBind;

@dregad dregad linked a pull request Oct 18, 2023 that will close this issue
@dregad dregad added bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1) labels Nov 1, 2023
@dregad dregad added this to the v5.22.7 milestone Nov 1, 2023
@dregad dregad changed the title Bugfix: mysqli bulkBind reset after one call mysqli: bulkBind reset after one call Nov 1, 2023
dregad pushed a commit that referenced this issue Nov 1, 2023
Stored the current bulkBind value in a variable so $this->bulkBind can
be reset after being set to false.

Fixes #1000 (PR #1300)
@dregad dregad closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mysqli MySQL and compatible drivers (MariaDB, etc) (Tier 1)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants