diff options
Diffstat (limited to 'libdbpp/selectcommand.cpp')
-rw-r--r-- | libdbpp/selectcommand.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdbpp/selectcommand.cpp b/libdbpp/selectcommand.cpp index 6f36aa5..fd0c58e 100644 --- a/libdbpp/selectcommand.cpp +++ b/libdbpp/selectcommand.cpp @@ -2,23 +2,25 @@ #include "error.h" #include <boost/multi_index_container.hpp> #include <boost/multi_index/ordered_index.hpp> -#include <buffer.h> +#include <compileTimeFormatter.h> namespace DB { ColumnIndexOutOfRange::ColumnIndexOutOfRange(unsigned int n) : colNo(n) { } + AdHocFormatter(ColumnIndexOutOfRangeMsg, "Column (%?) index out of range"); std::string ColumnIndexOutOfRange::message() const throw() { - return stringf("Column (%u) index out of range", colNo); + return ColumnIndexOutOfRangeMsg::get(colNo); } ColumnDoesNotExist::ColumnDoesNotExist(const Glib::ustring & n) : colName(n) { } + AdHocFormatter(ColumnDoesNotExistMsg, "Column (%?) does not exist"); std::string ColumnDoesNotExist::message() const throw() { - return stringf("Column (%s) does not exist", colName.c_str()); + return ColumnDoesNotExistMsg::get(colName); } }; |