Skip to content

Commit

Permalink
Update database access
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Jun 15, 2024
1 parent 2d95eb3 commit f05170b
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 109 deletions.
4 changes: 2 additions & 2 deletions database/etcbc4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static int get_id (SqliteDatabase& sql, const char* table_row, const std::string
for (unsigned int i = 0; i < 2; i++) {

// Save the existing SQL just now because the code below puts new SQL into the object.
sql.save_sql();
sql.push_sql();

{
// Check on the rowid and fetch it if it's there.
Expand Down Expand Up @@ -72,7 +72,7 @@ static int get_id (SqliteDatabase& sql, const char* table_row, const std::string
}

// Restore the previously saved SQL so the caller can again use it.
sql.restore_sql();
sql.pop_sql();

if (id)
return id;
Expand Down
Loading

0 comments on commit f05170b

Please sign in to comment.