summaryrefslogtreecommitdiff
path: root/chromium/sql/statement_id.cc
blob: 91851dfa34e557d39c85e1a2d44409234cb919e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <cstring>

#include "sql/statement_id.h"

namespace sql {

bool StatementID::operator<(const StatementID& rhs) const noexcept {
  if (rhs.source_line_ != source_line_)
    return source_line_ < rhs.source_line_;
  return std::strcmp(source_file_, rhs.source_file_) < 0;
}

}  // namespace sql