Skip to content

Commit

Permalink
Update fasta.c
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Aug 25, 2020
1 parent 261b0f5 commit 5b5a427
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fasta.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,12 @@ void pyfastx_fasta_calc_composition(pyfastx_Fasta *self) {
if (ret == SQLITE_ROW)
return;

printf("%s\n", "yes no index");

stmt = NULL;

PYFASTX_SQLITE_CALL(sqlite3_exec(self->index->index_db, "PRAGMA synchronous=OFF;BEGIN TRANSACTION;", NULL, NULL, NULL));
sql = "PRAGMA synchronous=OFF;BEGIN TRANSACTION;";
PYFASTX_SQLITE_CALL(sqlite3_exec(self->index->index_db, sql, NULL, NULL, NULL));

sql = "INSERT INTO comp VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);";
PYFASTX_SQLITE_CALL(sqlite3_prepare_v2(self->index->index_db, sql, -1, &stmt, NULL));
Expand Down

0 comments on commit 5b5a427

Please sign in to comment.