svn cleanup: sqlite: database disk image is malformed

前端 未结 17 1451
谎友^
谎友^ 2020-12-02 06:31

I was trying to do a svn cleanup because I can\'t commit the changes in my working copy, and I got the following error:

sqllite: databas

17条回答
  •  北海茫月
    2020-12-02 06:49

    During app development I found that the messages come from the frequent and massive INSERT and UPDATE operations. Make sure to INSERT and UPDATE multiple rows or data in one single operation.

    var updateStatementString : String! = ""
    
    for item in cardids {
    
    let newstring = "UPDATE "+TABLE_NAME+" SET pendingImages = '\(pendingImage)\' WHERE cardId = '\(item)\';"
                updateStatementString.append(newstring)
    
            }
    
    
            print(updateStatementString)
            let results = dbManager.sharedInstance.update(updateStatementString: updateStatementString)
    
            return Int64(results)
    

提交回复
热议问题