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

联合主键长度问题 #123

Open
dong136279559 opened this issue Jun 24, 2020 · 0 comments
Open

联合主键长度问题 #123

dong136279559 opened this issue Jun 24, 2020 · 0 comments

Comments

@dong136279559
Copy link

+(NSArray *)bg_unionPrimaryKeys{
return @[@"fileId",@"userId"];
}

ff80808172783df401727a1edf580020 时,保存异常

文件id:123456 文件的userid:ff80808172783df401727a1edf580020
2020-06-24 11:16:37.176948+0800 移证签[14738:4561157] Unknown error calling sqlite3_step (19: UNIQUE constraint failed: HB_File_HashTable.BG_userId) eu
2020-06-24 11:16:37.177167+0800 移证签[14738:4561157] DB Query: insert into HB_File_HashTable(BG_bg_createTime,BG_fileHash,BG_bg_updateTime,BG_bg_id,BG_userId,BG_fileId) values(?,?,?,?,?,?);
2020-06-24 11:16:37.177418+0800 移证签[14738:4561157] Unknown error finalizing or resetting statement (19: UNIQUE constraint failed: HB_File_HashTable.BG_userId)
2020-06-24 11:16:37.177566+0800 移证签[14738:4561157] DB Query: insert into HB_File_HashTable(BG_bg_createTime,BG_fileHash,BG_bg_updateTime,BG_bg_id,BG_userId,BG_fileId) values(?,?,?,?,?,?);
2020-06-24 11:16:37.178233+0800 移证签[14738:4561157] 保存信息 失败

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

1 participant