summaryrefslogtreecommitdiff
path: root/libmysqlpp/selectcommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-04-29 20:43:50 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-04-29 20:43:50 +0100
commit9917fcb8386cf74ef52771f9bae6de2088209466 (patch)
tree2824d704bbedb7a82a56ca7cf404c263b3ca18a3 /libmysqlpp/selectcommand.cpp
parentIgnore Vim swap files (diff)
downloadlibdbpp-mysql-9917fcb8386cf74ef52771f9bae6de2088209466.tar.bz2
libdbpp-mysql-9917fcb8386cf74ef52771f9bae6de2088209466.tar.xz
libdbpp-mysql-9917fcb8386cf74ef52771f9bae6de2088209466.zip
Centralize all the column reference storage logic
Diffstat (limited to 'libmysqlpp/selectcommand.cpp')
-rw-r--r--libmysqlpp/selectcommand.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/libmysqlpp/selectcommand.cpp b/libmysqlpp/selectcommand.cpp
index b361fb1..41b28b6 100644
--- a/libmysqlpp/selectcommand.cpp
+++ b/libmysqlpp/selectcommand.cpp
@@ -92,40 +92,3 @@ MySQL::SelectCommand::fetch()
}
}
-const DB::Column&
-MySQL::SelectCommand::operator[](unsigned int n) const
-{
- if (n < columns.size()) {
- return **columns.get<0>().find(n);
- }
- throw Error();
-}
-
-const DB::Column&
-MySQL::SelectCommand::operator[](const Glib::ustring & n) const
-{
- typedef Columns::nth_index<1>::type CbyName;
- CbyName::iterator i = columns.get<1>().find(n);
- if (i != columns.get<1>().end()) {
- return **i;
- }
- throw Error();
-}
-
-unsigned int
-MySQL::SelectCommand::getOrdinal(const Glib::ustring & n) const
-{
- typedef Columns::nth_index<1>::type CbyName;
- CbyName::iterator i = columns.get<1>().find(n);
- if (i != columns.get<1>().end()) {
- return (*i)->colNo;
- }
- throw Error();
-}
-
-unsigned int
-MySQL::SelectCommand::columnCount() const
-{
- return fields.size();
-}
-