Page MenuHomePhabricator

[native][web] Fix timestamp type in cpp
ClosedPublic

Authored by inka on Jul 24 2024, 2:15 AM.
Tags
None
Referenced Files
F3399453: D12866.id42828.diff
Mon, Dec 2, 3:22 AM
Unknown Object (File)
Fri, Nov 29, 9:58 PM
Unknown Object (File)
Mon, Nov 11, 2:19 PM
Unknown Object (File)
Nov 1 2024, 12:02 PM
Unknown Object (File)
Oct 26 2024, 9:38 PM
Unknown Object (File)
Oct 26 2024, 8:13 AM
Unknown Object (File)
Oct 15 2024, 12:36 AM
Unknown Object (File)
Oct 14 2024, 11:00 PM
Subscribers

Details

Summary

issue: ENG-8893
Timestamps exceed int, we need to use long long

Test Plan

Tested by commenting out isThreadThin check, and commenting out extractKeyserverIDFromIDOptional(messageInfo.threadID) check in getMessageSearchStoreOps. This allowed me to treat a thin thread as if it were thick, and execute local search on it.

Tested that this change fixed message search - next pages or results are now correctly fetched

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Jul 24 2024, 2:36 AM

Have you tested it on both platforms?

This revision is now accepted and ready to land.Jul 24 2024, 5:46 AM

Thanks for fixing it!

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2591–2593 ↗(On Diff #42724)

I think this should be int64_t like defined in here and you can use bindInt64ToSQL like in other places

native/cpp/CommonCpp/DatabaseManagers/entities/SQLiteDataConverters.cpp
51 ↗(On Diff #42724)

the return type is int - see docs

Have you tested it on both platforms?

Yes I have

This revision was automatically updated to reflect the committed changes.