Skip to content

Conversation

@5ini99
Copy link
Owner

@5ini99 5ini99 commented Feb 6, 2016

文件
thinkphp/library/think/db/Driver.php
第950行
$sql = 'INSERT INTO ' . $this->parseTable($options['table']) . ' (' . implode(',', $fields) . ') ' . implode(' UNION ALL ', $values);
修改为
$sql = (true === $replace ? 'REPLACE' : 'INSERT') . ' INTO ' . $this->parseTable($options['table']) . ' (' . implode(',', $fields) . ') ' . implode(' UNION ALL ', $values);

@kinosang
Copy link

kinosang commented Feb 6, 2016

呃,pr不是这么用的。

不会在本地修改的话,可以参考 https://github.com/top-think/think/blob/master/CONTRIBUTING.md快速修改小节

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.