Mercurial > hg > orthanc
diff OrthancFramework/Sources/SQLite/StatementId.cpp @ 5553:28cc06e4859a large-queries
Added ExtendedApiV1: /changes
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 11 Apr 2024 19:02:20 +0200 |
parents | 48b8dae6dc77 |
children | 3f13db27b399 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/SQLite/StatementId.cpp Fri Mar 29 23:23:01 2024 +0100 +++ b/OrthancFramework/Sources/SQLite/StatementId.cpp Thu Apr 11 19:02:20 2024 +0200 @@ -56,12 +56,24 @@ { } + Orthanc::SQLite::StatementId::StatementId(const char *file, + int line, + const std::string& statement) : + file_(file), + line_(line), + statement_(statement) + { + } + bool StatementId::operator< (const StatementId& other) const { if (line_ != other.line_) return line_ < other.line_; - return strcmp(file_, other.file_) < 0; + if (strcmp(file_, other.file_) < 0) + return true; + + return statement_ < other.statement_; } } }