Skip to content

Commit f98de30

Browse files
authored
Merge pull request #2539 from Expensify/main
Update expensify_prod branch
2 parents 4a9c06b + e37c473 commit f98de30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libstuff/libstuff.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,6 +2836,10 @@ int SQuery(sqlite3* db, const string& sql, SQResult& result, int64_t warnThresho
28362836
int numColumns = sqlite3_column_count(preparedStatement);
28372837
result.headers.resize(numColumns);
28382838

2839+
for (int i = 0; i < numColumns; i++) {
2840+
result.headers[i] = sqlite3_column_name(preparedStatement, i);
2841+
}
2842+
28392843
while (true) {
28402844
size_t beforeStep = 0;
28412845
if (isSyncThread) {
@@ -2851,10 +2855,6 @@ int SQuery(sqlite3* db, const string& sql, SQResult& result, int64_t warnThresho
28512855
stepTimeUS += stepTime;
28522856
}
28532857

2854-
for (int i = 0; i < numColumns; i++) {
2855-
result.headers[i] = sqlite3_column_name(preparedStatement, i);
2856-
}
2857-
28582858
if (error == SQLITE_ROW) {
28592859
SQResultRow row(result, numColumns);
28602860
for (int i = 0; i < numColumns; i++) {

0 commit comments

Comments
 (0)