Skip to content
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

MySqlEntityPipeline在InsertNewAndUpdateOld模式插入数据时,生成的SQL语句报语法错误 #31

Closed
zrczrc opened this issue Dec 31, 2017 · 1 comment

Comments

@zrczrc
Copy link

zrczrc commented Dec 31, 2017

MySqlEntityPipeline/GenerateInsertNewAndUpdateOldSql()
var sql =
$"INSERT INTO {adapter.Table.Database}.{tableName} ({cols}) {colsParams} ON DUPLICATE KEY UPDATE {setParams};";
改成
var sql =
$"INSERT INTO {adapter.Table.Database}.{tableName} ({cols}) VALUES ({colsParams}) ON DUPLICATE KEY UPDATE {setParams};";
就没问题了。

@zlzforever
Copy link
Collaborator

已解决

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

No branches or pull requests

2 participants