diff options
author | randomdan <randomdan@localhost> | 2010-09-13 19:57:25 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-09-13 19:57:25 +0000 |
commit | 95bc5ac789c2f29220f76c94fc93d6379dcd00c6 (patch) | |
tree | 2af19c25a48dfb13b2db681544ad6fa82407c567 /libodbcpp/selectcommand.h | |
parent | Use the right header for BUFSIZ (diff) | |
download | libdbpp-odbc-95bc5ac789c2f29220f76c94fc93d6379dcd00c6.tar.bz2 libdbpp-odbc-95bc5ac789c2f29220f76c94fc93d6379dcd00c6.tar.xz libdbpp-odbc-95bc5ac789c2f29220f76c94fc93d6379dcd00c6.zip |
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)
Diffstat (limited to 'libodbcpp/selectcommand.h')
-rw-r--r-- | libodbcpp/selectcommand.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |