summaryrefslogtreecommitdiff
path: root/libodbcpp/column.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-09-16 18:14:28 +0000
committerrandomdan <randomdan@localhost>2010-09-16 18:14:28 +0000
commitd0807e56bc2ef9644b27a955e69906f7768b1551 (patch)
treee809ea3cc8637db25971bea8e4e291d625eaefb8 /libodbcpp/column.cpp
parentRewrite the whole of parameter and column binding almost from scratch (diff)
downloadlibdbpp-odbc-d0807e56bc2ef9644b27a955e69906f7768b1551.tar.bz2
libdbpp-odbc-d0807e56bc2ef9644b27a955e69906f7768b1551.tar.xz
libdbpp-odbc-d0807e56bc2ef9644b27a955e69906f7768b1551.zip
Fix ustring builders from chararraycolumn
Diffstat (limited to 'libodbcpp/column.cpp')
-rw-r--r--libodbcpp/column.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp
index f8a9dfb..9ed6143 100644
--- a/libodbcpp/column.cpp
+++ b/libodbcpp/column.cpp
@@ -115,14 +115,14 @@ const Glib::ustring &
ODBC::CharArrayColumn::compose() const
{
if (!composeCache) {
- composeCache = new Glib::ustring(data.begin(), data.end());
+ composeCache = new Glib::ustring(&data.front(), bindLen);
}
return *composeCache;
}
Glib::ustring
ODBC::CharArrayColumn::compose(const Glib::ustring & fmt) const
{
- return Glib::ustring::compose(fmt, &data[0]);
+ return Glib::ustring::compose(fmt, &data.front());
}
int
ODBC::TimeStampColumn::writeToBuf(char ** buf, const char * fmt) const