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 const char get_nth_id_stmt_template[] =
|
||||
"SELECT rowid "
|
||||
"FROM projects "
|
||||
"WHERE"
|
||||
"LIMIT 1 "
|
||||
"OFFSET ?;"
|
||||
"FROM project "
|
||||
"LIMIT 1 "
|
||||
"OFFSET ?;"
|
||||
;
|
||||
|
@ -35,17 +35,17 @@ api_init(void)
|
||||
DBERR(sqlite3_open(DBFILE, &connection));
|
||||
DBERR(stmt_prepare(remind_stmt));
|
||||
DBERR(stmt_prepare(set_repo_stmt));
|
||||
DBERR(stmt_prepare(get_nth_id_stmt));
|
||||
DBERR(stmt_prepare(get_nth_id_stmt));
|
||||
return 0;
|
||||
}
|
||||
|
||||
DECL void
|
||||
api_rope(void)
|
||||
{
|
||||
DBERR(sqlite3_finalize(remind_stmt));
|
||||
DBERR(sqlite3_finalize(remind_stmt));
|
||||
DBERR(sqlite3_finalize(set_repo_stmt));
|
||||
DBERR(sqlite3_finalize(get_nth_id_stmt));
|
||||
sqlite3_close(connection);
|
||||
sqlite3_close(connection);
|
||||
}
|
||||
|
||||
DECL void
|
||||
|
Reference in New Issue
Block a user