-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Updated insertMulti #775
base: master
Are you sure you want to change the base?
Updated insertMulti #775
Conversation
Complete with fix for k warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly done :)
MysqliDb.php
Outdated
@@ -780,6 +780,13 @@ public function insertMulti($tableName, array $multiInsertData, array $dataKeys | |||
$autoCommit = (isset($this->_transaction_in_progress) ? !$this->_transaction_in_progress : true); | |||
$ids = array(); | |||
|
|||
$options = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use old Array() syntax since we still support old php version
MysqliDb.php
Outdated
return $ids; | ||
} | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove all whitespace changes
White spaces removed too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem
MysqliDb.php
Outdated
$this->rollback(); | ||
} | ||
return false; | ||
$id = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still should be return false; plus previous comments are not addressed
I've changed the return type back to suit - I can't tell whats wrong with spacing per previous comment ? |
Complete with fix for k warning.