SQLite。无法添加超过 1000 行

Rom*_*use 4 sqlite iphone objective-c fmdb ios

我试图向我的 SQLite 数据库(使用 fmdb)添加 10k 行,但写入在 1000 行处停止。我没有任何错误或警告。我的代码:

NSString *queryString = [NSString stringWithFormat:@"insert into histories (storyid, text, date, storyurl) values (%li, ?, ?, ?)",history.storyIndex];
if ([self.db open]) {
    if([self.db executeUpdate:queryString, history.storyText, history.storyDate, history.storyUrl]) {
        NSLog(@"history added");
    } 
}
Run Code Online (Sandbox Code Playgroud)

有什么建议么?

Joa*_*zar 5

对于任何有同样问题的人...确保您的 sqlite 查看器没有将查询的输出限制为 1000 个结果。

只是因为同样的问题浪费了几分钟,答案就是这么简单!