mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Fix incorrect detection of update-duplicate attribute
This commit is contained in:
parent
7659c18df9
commit
89e4b03265
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue