From 1df33cc9d9a7804c78788d5717435ede44855ca0 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 11 Jun 2010 09:03:42 +0000 Subject: Use Glib::ustring in libodbcpp for data and std::string for non-data Add support for parameters in SqlViews Uses parameters to implement category browse and search --- libodbcpp/column.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libodbcpp/column.h') diff --git a/libodbcpp/column.h b/libodbcpp/column.h index 992a958..9f3b93d 100644 --- a/libodbcpp/column.h +++ b/libodbcpp/column.h @@ -1,13 +1,13 @@ #ifndef ODBC_COLUMN_H #define ODBC_COLUMN_H -#include "ustring.h" +#include #include "bind.h" namespace ODBC { class Column : public BindBase { public: - Column(String, unsigned int); + Column(const Glib::ustring &, unsigned int); virtual ~Column(); void bind(SQLHANDLE, SQLUINTEGER, SQLSMALLINT, void*, size_t); operator int () const; @@ -19,22 +19,23 @@ namespace ODBC { operator const unsigned char * () const; operator const char * () const; operator std::string () const; - operator String () const; + operator Glib::ustring () const; operator struct tm () const; virtual void rebind(Command *, unsigned int col) const = 0; virtual int writeToBuf(char ** buf) const = 0; virtual int writeToBuf(char ** buf, const char * fmt) const = 0; + bool isNull() const; const unsigned int colNo; - const String name; + const Glib::ustring name; private: - mutable bool fresh; + SQLUINTEGER bindSize; // Allocated memory friend class SelectCommand; }; template class _Column : public Bind, public Column { public: - _Column(String, unsigned int); + _Column(const Glib::ustring &, unsigned int); ~_Column() {} void rebind(Command *, unsigned int col) const; int writeToBuf(char ** buf) const; -- cgit v1.2.3