summaryrefslogtreecommitdiff
path: root/libodbcpp/command.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-06-11 09:03:42 +0000
committerrandomdan <randomdan@localhost>2010-06-11 09:03:42 +0000
commit1df33cc9d9a7804c78788d5717435ede44855ca0 (patch)
treeb78e66de0a9f7d6bb39038d6f628cbc871ffa652 /libodbcpp/command.h
parentInitial workings of project2 - renders gentoobrowse homepage (diff)
downloadlibdbpp-odbc-1df33cc9d9a7804c78788d5717435ede44855ca0.tar.bz2
libdbpp-odbc-1df33cc9d9a7804c78788d5717435ede44855ca0.tar.xz
libdbpp-odbc-1df33cc9d9a7804c78788d5717435ede44855ca0.zip
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
Diffstat (limited to 'libodbcpp/command.h')
-rw-r--r--libodbcpp/command.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libodbcpp/command.h b/libodbcpp/command.h
index 8ea24d4..1348441 100644
--- a/libodbcpp/command.h
+++ b/libodbcpp/command.h
@@ -3,13 +3,14 @@
#include <vector>
#include "connection.h"
+#include <glibmm/ustring.h>
namespace ODBC {
class Param;
class Command {
typedef std::vector<Param*> Params;
public:
- Command(const Connection&, String sql);
+ Command(const Connection &, const std::string & sql);
virtual ~Command() = 0;
void bindParamI(unsigned int i, int val);
@@ -20,15 +21,14 @@ namespace ODBC {
void bindParamF(unsigned int i, double val);
void bindParamF(unsigned int i, float val);
void bindParamS(unsigned int i, const char *);
- void bindParamS(unsigned int i, const unsigned char *);
- void bindParamS(unsigned int i, const unsigned char *, size_t);
+ void bindParamS(unsigned int i, const char *, size_t);
void bindParamS(unsigned int i, const std::string &);
- void bindParamS(unsigned int i, const String &);
+ void bindParamS(unsigned int i, const Glib::ustring &);
void bindParamT(unsigned int i, const struct tm *);
void bindParamT(unsigned int i, const SQL_TIMESTAMP_STRUCT &);
void bindParamT(unsigned int i, time_t);
- const String sql;
+ const std::string sql;
protected:
friend class BindBase;
SQLHSTMT hStmt;