summaryrefslogtreecommitdiff
path: root/libodbcpp/selectcommand.h
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
commit8d9d02d2e769b8b25e166f07f4ecd67a22f4e499 (patch)
treec23db7820aa1472733b6a712c5458b771446ef72 /libodbcpp/selectcommand.h
parentIgnore Vim swap files (diff)
downloadlibdbpp-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.h7
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;
};
}