summaryrefslogtreecommitdiff
path: root/libodbcpp/command.h
diff options
context:
space:
mode:
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;