diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-04-29 20:43:50 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-04-29 20:43:50 +0100 |
commit | 8d9d02d2e769b8b25e166f07f4ecd67a22f4e499 (patch) | |
tree | c23db7820aa1472733b6a712c5458b771446ef72 /libodbcpp/selectcommand.h | |
parent | Ignore Vim swap files (diff) | |
download | libdbpp-odbc-8d9d02d2e769b8b25e166f07f4ecd67a22f4e499.tar.bz2 libdbpp-odbc-8d9d02d2e769b8b25e166f07f4ecd67a22f4e499.tar.xz libdbpp-odbc-8d9d02d2e769b8b25e166f07f4ecd67a22f4e499.zip |
Centralize all the column reference storage logic
Diffstat (limited to 'libodbcpp/selectcommand.h')
-rw-r--r-- | libodbcpp/selectcommand.h | 7 |
1 files changed, 1 insertions, 6 deletions
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<Column*> 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; }; } |