Skip to content

Commit

Permalink
fix: lenghts scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 7, 2024
1 parent 61754bb commit d56313b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/database/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,8 @@ void Database::createDatabaseBackup() const {
int numFields = mysql_num_fields(tableData);
MYSQL_FIELD* fields = mysql_fetch_fields(tableData);
MYSQL_ROW rowData;
unsigned long* lengths;

while ((rowData = mysql_fetch_row(tableData))) {
lengths = mysql_fetch_lengths(tableData);
auto lengths = mysql_fetch_lengths(tableData);
backupFile << "INSERT INTO " << tableName << " VALUES(";

for (int i = 0; i < numFields; ++i) {
Expand Down

0 comments on commit d56313b

Please sign in to comment.