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

报错在这个方法中,不知道什么原因,使用 diskcache,遵守了协议,重写了归档方法 #49

Closed
imwangxuesen opened this issue Jun 10, 2016 · 3 comments

Comments

@imwangxuesen
Copy link

  • (int)_dbGetItemCountWithKey:(NSString *)key {
    NSString *sql = @"select count(key) from manifest where key = ?1;";
    sqlite3_stmt *stmt = [self _dbPrepareStmt:sql];
    if (!stmt) return -1;
    sqlite3_bind_text(stmt, 1, key.UTF8String, -1, NULL);
    int result = sqlite3_step(stmt);
    if (result != SQLITE_ROW) {
    if (_errorLogsEnabled) NSLog(@"%s line:%d sqlite query error (%d): %s", FUNCTION, LINE, result, sqlite3_errmsg(_db));
    return -1;
    }
    return sqlite3_column_int(stmt, 0);
    }
@feiadan
Copy link

feiadan commented Jun 11, 2016

具体什么错误?

@ibireme
Copy link
Owner

ibireme commented Jun 12, 2016

提供一下崩溃时的调用栈或者详细错误信息把。

@imwangxuesen
Copy link
Author

问题解决了,不好意思各位,是我自己的代码的错误,一个和服务端没有协调好的问题。和库无关,实在不好意思,谢谢大家热心关注

@ibireme ibireme closed this as completed Jun 15, 2016
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

3 participants