summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-param.h
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/odbc-param.h')
-rw-r--r--libodbcpp/odbc-param.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libodbcpp/odbc-param.h b/libodbcpp/odbc-param.h
index 96ab7f3..0981fe9 100644
--- a/libodbcpp/odbc-param.h
+++ b/libodbcpp/odbc-param.h
@@ -80,18 +80,19 @@ namespace ODBC {
protected:
SQLDOUBLE data;
};
- class GlibUstringParam : public Param {
+ class StdStringParam : public Param {
public:
- GlibUstringParam() : Param() { }
- GlibUstringParam(Command * c, unsigned int i) : Param(c, i) { bindLen = size(); }
+ StdStringParam() : Param() { }
+ StdStringParam(Command * c, unsigned int i) : Param(c, i) { bindLen = size(); }
virtual SQLSMALLINT ctype() const override { return SQL_C_CHAR; }
virtual SQLSMALLINT stype() const override { return SQL_CHAR; }
- virtual SQLULEN size() const override { return data.bytes(); }
+ virtual SQLULEN size() const override { return data.length(); }
virtual SQLINTEGER dp() const override { return 0; }
virtual const void * dataAddress() const override { return data.data(); }
+ void operator=(const std::string_view & d);
void operator=(const Glib::ustring & d);
protected:
- Glib::ustring data;
+ std::string data;
};
class IntervalParam : public Param {
public: