Page MenuHomePhabricator

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

Authored by inka on Jul 24 2024, 2:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 20, 8:31 AM
Unknown Object (File)
Sun, Apr 20, 2:44 AM
Unknown Object (File)
Sat, Apr 19, 2:06 PM
Unknown Object (File)
Fri, Apr 18, 8:27 PM
Unknown Object (File)
Fri, Apr 18, 6:48 AM
Unknown Object (File)
Mar 4 2025, 10:04 PM
Unknown Object (File)
Feb 24 2025, 8:42 PM
Unknown Object (File)
Feb 21 2025, 4:37 AM
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
Branch
inka/search
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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.