summaryrefslogtreecommitdiff
path: root/libodbcpp/selectcommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/selectcommand.h')
-rw-r--r--libodbcpp/selectcommand.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libodbcpp/selectcommand.h b/libodbcpp/selectcommand.h
index a0cd6e1..81f3ea9 100644
--- a/libodbcpp/selectcommand.h
+++ b/libodbcpp/selectcommand.h
@@ -1,22 +1,24 @@
#ifndef ODBC_SELECTCOMMAND_H
#define ODBC_SELECTCOMMAND_H
+#include "../libdbpp/selectcommand.h"
#include "command.h"
namespace ODBC {
class Column;
- class SelectCommand : public Command {
+ class SelectCommand : public Command, public DB::SelectCommand {
typedef std::vector<Column*> Columns;
public:
SelectCommand (const Connection &, const std::string & sql);
~SelectCommand();
- bool fetch(SQLSMALLINT orientation = SQL_FETCH_NEXT, SQLLEN offset = 0);
+ bool fetch();
void execute();
- const Column & operator[](unsigned int col) const;
- const Column & operator[](const Glib::ustring &) const;
+ 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;
};
}