1.20.x query.inc | public MergeQuery::getResult() |
Return the result of the merge query.
If an insert has been performed, this will be the last ID inserted. On updates, it will be the number of rows matched by the merge.
Return value
int:
File
- includes/
database/ query.inc, line 1668 - Non-specific Database query code. Used by all engines.
Class
- MergeQuery
- General class for an abstracted MERGE query operation.
Code
public function getResult() {
return (int) $this->result;
}