From 6d7c18f1119de8941c7055910e55c13c411eeb92 Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 9 Feb 2011 01:33:33 +0000 Subject: Fix the build system to do dependencies properly Break down libodbcpp into a set of base classes; libdbpp Add a native PostgreSQL implementation of libdbpp; libpqpp Extend project2 rdbms stuff to work with generic connectors Update datasources to specify connector type Build libmisc as .so --- libodbcpp/selectcommand.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libodbcpp/selectcommand.h') 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 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; }; } -- cgit v1.2.3