Fix incorrect detection of update-duplicate attribute

This commit is contained in:
Kijin Sung 2020-07-06 20:07:57 +09:00
parent 7659c18df9
commit 89e4b03265

View file

@ -186,7 +186,7 @@ class DBQueryParser extends BaseParser
}
// Check the ON DUPLICATE KEY UPDATE (upsert) flag.
if ($query->type === 'INSERT' && $update_duplicate = $attribs['updateduplicate'])
if ($query->type === 'INSERT' && $update_duplicate = self::_getAttributes($xml)['updateduplicate'])
{
if (toBool($update_duplicate))
{