summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/selectcommand.cpp')
-rw-r--r--libdbpp/selectcommand.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdbpp/selectcommand.cpp b/libdbpp/selectcommand.cpp
index 3217f3b..a378660 100644
--- a/libdbpp/selectcommand.cpp
+++ b/libdbpp/selectcommand.cpp
@@ -8,12 +8,14 @@
#include <compileTimeFormatter.h>
#include <glibmm/ustring.h>
#include <utility>
+
// IWYU pragma: no_forward_declare boost::multi_index::member
namespace DB {
ColumnIndexOutOfRange::ColumnIndexOutOfRange(unsigned int n) : colNo(n) { }
AdHocFormatter(ColumnIndexOutOfRangeMsg, "Column (%?) index out of range");
+
std::string
ColumnIndexOutOfRange::message() const noexcept
{
@@ -23,6 +25,7 @@ namespace DB {
ColumnDoesNotExist::ColumnDoesNotExist(Glib::ustring n) : colName(std::move(n)) { }
AdHocFormatter(ColumnDoesNotExistMsg, "Column (%?) does not exist");
+
std::string
ColumnDoesNotExist::message() const noexcept
{
@@ -34,8 +37,8 @@ namespace DB {
const unsigned int, &DB::Column::colNo>>,
boost::multi_index::ordered_unique<
boost::multi_index::member<DB::Column, const std::string, &DB::Column::name>>>>;
- class SelectCommand::Columns : public ColumnsBase {
- };
+
+ class SelectCommand::Columns : public ColumnsBase { };
}
DB::SelectCommand::SelectCommand(const std::string & sql) : DB::Command(sql), columns(std::make_unique<Columns>()) { }