From 8d9d02d2e769b8b25e166f07f4ecd67a22f4e499 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 29 Apr 2015 20:43:50 +0100 Subject: Centralize all the column reference storage logic --- libodbcpp/selectcommand.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libodbcpp/selectcommand.h') diff --git a/libodbcpp/selectcommand.h b/libodbcpp/selectcommand.h index 81f3ea9..c728ee1 100644 --- a/libodbcpp/selectcommand.h +++ b/libodbcpp/selectcommand.h @@ -7,19 +7,14 @@ namespace ODBC { class Column; class SelectCommand : public Command, public DB::SelectCommand { - typedef std::vector Columns; public: SelectCommand (const Connection &, const std::string & sql); ~SelectCommand(); bool fetch(); void execute(); - const DB::Column & operator[](unsigned int col) const; - const DB::Column & operator[](const Glib::ustring &) const; - unsigned int columnCount() const; - unsigned int getOrdinal(const Glib::ustring &) const; + private: bool fetch(SQLSMALLINT orientation = SQL_FETCH_NEXT, SQLLEN offset = 0); - Columns columns; }; } -- cgit v1.2.3