From 95bc5ac789c2f29220f76c94fc93d6379dcd00c6 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 13 Sep 2010 19:57:25 +0000 Subject: Remove duplication in ODBC::Connection constructors Remove pointless specialisation on _Column for strings Set cursor type to scrollable (required to refetch a row) Resize binds if fetched data is truncated Support scrolling fetch (default is old 'next record' behaviour) --- libodbcpp/selectcommand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libodbcpp/selectcommand.h') diff --git a/libodbcpp/selectcommand.h b/libodbcpp/selectcommand.h index 541cd08..c523f25 100644 --- a/libodbcpp/selectcommand.h +++ b/libodbcpp/selectcommand.h @@ -10,7 +10,7 @@ namespace ODBC { public: SelectCommand (const Connection &, const std::string & sql); ~SelectCommand(); - bool fetch(); + bool fetch(SQLSMALLINT orientation = SQL_FETCH_NEXT, SQLLEN offset = 0); const Column & operator[](unsigned int col) const; const Column & operator[](const Glib::ustring &) const; unsigned int columnCount() const; -- cgit v1.2.3