Compare commits
2 Commits
375b92e487
...
370294ddb8
Author | SHA1 | Date | |
---|---|---|---|
370294ddb8 | |||
e8f3cf6014 |
@ -30,8 +30,7 @@ static const char dump_stmt[] =
|
|||||||
static sqlite3_stmt* get_nth_id_stmt;
|
static sqlite3_stmt* get_nth_id_stmt;
|
||||||
static const char get_nth_id_stmt_template[] =
|
static const char get_nth_id_stmt_template[] =
|
||||||
"SELECT rowid "
|
"SELECT rowid "
|
||||||
"FROM projects "
|
"FROM project "
|
||||||
"WHERE"
|
"LIMIT 1 "
|
||||||
"LIMIT 1 "
|
"OFFSET ?;"
|
||||||
"OFFSET ?;"
|
|
||||||
;
|
;
|
||||||
|
@ -35,17 +35,17 @@ api_init(void)
|
|||||||
DBERR(sqlite3_open(DBFILE, &connection));
|
DBERR(sqlite3_open(DBFILE, &connection));
|
||||||
DBERR(stmt_prepare(remind_stmt));
|
DBERR(stmt_prepare(remind_stmt));
|
||||||
DBERR(stmt_prepare(set_repo_stmt));
|
DBERR(stmt_prepare(set_repo_stmt));
|
||||||
DBERR(stmt_prepare(get_nth_id_stmt));
|
DBERR(stmt_prepare(get_nth_id_stmt));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DECL void
|
DECL void
|
||||||
api_rope(void)
|
api_rope(void)
|
||||||
{
|
{
|
||||||
DBERR(sqlite3_finalize(remind_stmt));
|
DBERR(sqlite3_finalize(remind_stmt));
|
||||||
DBERR(sqlite3_finalize(set_repo_stmt));
|
DBERR(sqlite3_finalize(set_repo_stmt));
|
||||||
DBERR(sqlite3_finalize(get_nth_id_stmt));
|
DBERR(sqlite3_finalize(get_nth_id_stmt));
|
||||||
sqlite3_close(connection);
|
sqlite3_close(connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
DECL void
|
DECL void
|
||||||
|
Reference in New Issue
Block a user